diff --git a/web/themes/custom/caravane/assets/js/stores/content.js b/web/themes/custom/caravane/assets/js/stores/content.js index d645de6..5868559 100644 --- a/web/themes/custom/caravane/assets/js/stores/content.js +++ b/web/themes/custom/caravane/assets/js/stores/content.js @@ -238,13 +238,12 @@ export const useContentStore = defineStore('content', { const partiesFetch = await this.fetchContent('field_parties_static', page.relationships); if (partiesFetch) { this.page.parties = []; - for (let partie of partiesFetch) { const partieType = partie.type.replace(/^paragraph--/, ""); let partieContent = { type: partieType, - }; + }; switch (partieType) { case 'titre_texte': @@ -263,6 +262,9 @@ export const useContentStore = defineStore('content', { } } break; + case 'exergue': + partieContent.exergue = partie.attributes.field_texte_exergue.value; + break; case 'video': partieContent.videos = []; for (let video of partie.attributes.field_videos) { diff --git a/web/themes/custom/caravane/assets/js/vuejs/components/ModaleHeader.vue b/web/themes/custom/caravane/assets/js/vuejs/components/ModaleHeader.vue index 6e0c76d..3b42c7a 100644 --- a/web/themes/custom/caravane/assets/js/vuejs/components/ModaleHeader.vue +++ b/web/themes/custom/caravane/assets/js/vuejs/components/ModaleHeader.vue @@ -1,7 +1,7 @@