Ver Fonte

various fixes

Olivier Massot há 1 ano atrás
pai
commit
aaa5f84a60

+ 2 - 5
components/Common/ActionMenu.vue

@@ -5,10 +5,7 @@ de l'écran (ou au bas de l'écran sur les petits écrans)
 <template>
   <div v-show="showMenu">
     <!-- Écrans larges : menu lateral, accroché au bord droit de l'écran -->
-    <div
-      v-if="lgAndUp && isVisible"
-      class="sticky-menu lateral"
-    >
+    <div v-if="lgAndUp && isVisible" class="sticky-menu lateral">
       <v-row
         v-for="(action, index) in actionsOrDefault"
         :key="index"
@@ -138,7 +135,7 @@ const onActionClick = (action: ActionMenuItem) => {
         throw new Error('Missing prop : url')
       }
       navigateTo(action.url, {
-        open: { target: '_blank' },
+        open: { target: action.target ? action.target : '_self' },
       })
       break
 

+ 11 - 11
components/Layout/Footer/Footer.vue

@@ -238,17 +238,17 @@ const footerLinks = ref([
       {
         label: 'Annuaire',
         link: makeAgendaLink('/annuaire'),
-        target: '_self',
+        target: '_blank',
       },
       {
         label: 'Actualités',
         link: makeAgendaLink('/actualites-culturelles'),
-        target: '_self',
+        target: '_blank',
       },
       {
         label: 'Annonces',
         link: makeAgendaLink('/annonces-culturelles'),
-        target: '_self',
+        target: '_blank',
       },
     ],
   },
@@ -258,17 +258,17 @@ const footerLinks = ref([
       {
         label: 'Opentalent Artist',
         link: '/opentalent-artist',
-        target: 'self',
+        target: '_self',
       },
       {
         label: 'Opentalent School',
         link: '/opentalent-school',
-        target: 'self',
+        target: '_self',
       },
       {
         label: 'Opentalent Manager',
         link: '/opentalent-manager',
-        target: 'self',
+        target: '_self',
       },
     ],
   },
@@ -278,17 +278,17 @@ const footerLinks = ref([
       {
         label: 'Qui sommes-nous',
         link: '/qui-sommes-nous',
-        target: 'self',
+        target: '_self',
       },
       {
         label: 'Nous rejoindre',
         link: '/nous-rejoindre',
-        target: 'self',
+        target: '_self',
       },
       {
         label: 'Nous contacter',
         link: '/nous-contacter',
-        target: 'self',
+        target: '_self',
       },
     ],
   },
@@ -298,12 +298,12 @@ const footerLinks = ref([
       {
         label: 'Foire Aux Questions ',
         link: 'https://ressources.opentalent.fr',
-        target: 'self',
+        target: '_self',
       },
       {
         label: 'Support en ligne ',
         link: 'https://ressources.opentalent.fr/?contact',
-        target: 'self',
+        target: '_self',
       },
     ],
   },

+ 1 - 0
pages/opentalent-artist.vue

@@ -78,6 +78,7 @@ const stickyMenuActions: Array<ActionMenuItem> = [
     icon: 'fa-brands fa-readme icon',
     text: 'Brochure',
     url: '/files/Depliant_Opentalent_Artist_2024.pdf',
+    target: '_blank'
   },
 ]
 </script>

+ 1 - 0
pages/opentalent-manager.vue

@@ -75,6 +75,7 @@ const stickyMenuActions: Array<ActionMenuItem> = [
     icon: 'fa-brands fa-readme icon',
     text: 'Brochure',
     url: '/files/Depliant_Opentalent_Manager_2024.pdf',
+    target: '_blank',
   },
   {
     type: ActionMenuItemType.CALL_US,

+ 1 - 0
pages/opentalent-school.vue

@@ -86,6 +86,7 @@ const stickyMenuActions: Array<ActionMenuItem> = [
     icon: 'fa-brands fa-readme icon',
     text: 'Brochure',
     url: '/files/Dépliant-Opentalent_School_2024.pdf',
+    target: '_blank',
   },
   {
     type: ActionMenuItemType.CALL_US,

+ 2 - 1
types/interface.d.ts

@@ -5,7 +5,8 @@ interface ActionMenuItem {
   color: 'primary' | 'secondary'
   icon: string
   text: string
-  url?: string | object
+  url?: string | object,
+  target?: string
 }
 
 interface MainMenuItem {