From c72d27a6532fee2b50f4077dc148b21d230c63a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Brindle?= <sebastien.brindle@kleegroup.com> Date: Thu, 31 Oct 2024 15:26:50 +0100 Subject: [PATCH] Fix modal content display. --- components/consent-modal/consent-modal.component.yml | 3 +++ components/display-modal/display-modal.component.yml | 3 +++ components/display-modal/display-modal.twig | 1 + components/transcription/transcription.twig | 1 - 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/consent-modal/consent-modal.component.yml b/components/consent-modal/consent-modal.component.yml index 54487ab..521ed8c 100644 --- a/components/consent-modal/consent-modal.component.yml +++ b/components/consent-modal/consent-modal.component.yml @@ -40,5 +40,8 @@ props: type: string title: Title description: 'By default: "Manage consent", or the translated string in another language.' +slots: + modal_content: + title: Transcription modal content required: - services diff --git a/components/display-modal/display-modal.component.yml b/components/display-modal/display-modal.component.yml index b53dab6..8ec9f7b 100644 --- a/components/display-modal/display-modal.component.yml +++ b/components/display-modal/display-modal.component.yml @@ -8,6 +8,9 @@ props: type: string title: Title description: 'By default: "Display settings", or the translated string in another language.' +slots: + modal_content: + title: Transcription modal content libraryOverrides: dependencies: - dsfr4drupal/component.display diff --git a/components/display-modal/display-modal.twig b/components/display-modal/display-modal.twig index b333324..65f16b0 100644 --- a/components/display-modal/display-modal.twig +++ b/components/display-modal/display-modal.twig @@ -1,3 +1,4 @@ +{# This component needs access to the "dsfr_path" variable. It is therefore necessary to authorize the transmission of the context. #} {% embed 'dsfr4drupal:modal' with { attributes: create_attribute({'class': ['fr-col-12', 'fr-col-lg-4', 'fr-col-md-6']}), html_id: 'modal-display-settings', diff --git a/components/transcription/transcription.twig b/components/transcription/transcription.twig index 651c277..65bfcbe 100644 --- a/components/transcription/transcription.twig +++ b/components/transcription/transcription.twig @@ -21,7 +21,6 @@ {% embed 'dsfr4drupal:modal' with { attributes: create_attribute({'class': ['fr-col-12', 'fr-col-lg-8', 'fr-col-md-10']}), - content: content, html_id: modal_id, title: modal_title, } only %} -- GitLab