From 28fc90ea880ccc2c087d62d5fc01c28cbcd84636 Mon Sep 17 00:00:00 2001 From: BatLeDev Date: Wed, 6 May 2026 16:48:30 +0200 Subject: [PATCH 1/2] feat(portal): add option to open application in full page from card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New 'openInFullPage' option on the application card config: when enabled, clicking the card navigates directly to /full and the Aperçu/Plein écran action buttons are hidden. --- api/types/common-application-card/schema.js | 11 +++++++++++ .../app/components/application/application-card.vue | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/api/types/common-application-card/schema.js b/api/types/common-application-card/schema.js index 900a1d12..e4eee22c 100644 --- a/api/types/common-application-card/schema.js +++ b/api/types/common-application-card/schema.js @@ -15,6 +15,7 @@ export default { { cols: { md: 6 }, key: 'elevation' }, { cols: { md: 6 }, key: 'rounded' }, { cols: { md: 6 }, key: 'titleLinesCount' }, + { cols: { md: 6 }, key: 'openInFullPage' }, { cols: { md: 6 }, key: 'showSummary' }, { cols: { md: 6 }, key: 'showDepartment' } ] @@ -68,6 +69,16 @@ export default { { const: 0, title: 'Sans limite de lignes' } ] }, + openInFullPage: { + type: 'boolean', + title: 'Ouvrir la visualisation en plein écran', + description: 'Au clic sur la vignette, l\'application s\'ouvre en plein écran au lieu d\'afficher la page de détail. Les boutons "Aperçu" et "Plein écran" de la carte sont alors masqués.', + layout: { + comp: 'switch', + cols: { md: 4 } + }, + default: false + }, showSummary: { type: 'boolean', title: 'Afficher le résumé', diff --git a/portal/app/components/application/application-card.vue b/portal/app/components/application/application-card.vue index 6a838535..9b3e38ca 100644 --- a/portal/app/components/application/application-card.vue +++ b/portal/app/components/application/application-card.vue @@ -4,7 +4,7 @@ link => simulate link style in preview --> -