Browse Source

correction path

Maha Bouchiba 2 years ago
parent
commit
1f69ed0728
1 changed files with 12 additions and 2 deletions
  1. 12 2
      components/Layout/UI/ContainerVideo.vue

+ 12 - 2
components/Layout/UI/ContainerVideo.vue

@@ -8,7 +8,7 @@
               class="mt-6"
               class="mt-6"
               :iconSize="5"
               :iconSize="5"
               :iconColor="iconColor"
               :iconColor="iconColor"
-              :titleText="'Logiciel Opentalent School'"
+              :titleText="titleText"
               :titleColor="'#ffffff'"
               :titleColor="'#ffffff'"
             />
             />
             <p class="citation-school">
             <p class="citation-school">
@@ -31,8 +31,18 @@ import { useRoute } from "vue-router";
 
 
 const route = useRoute();
 const route = useRoute();
 
 
+const titleText = computed(() => {
+  if (/^\/opentalent_school\/?$/.test(route.path)) {
+    return "Logiciel OpenTalent School";
+  } else if (/^\/opentalent_artist\/?$/.test(route.path)) {
+    return "Logiciel OpenTalent Artist";
+  } else if (/^\/opentalent_manager\/?$/.test(route.path)) {
+    return "Logiciel OpenTalent Manager";
+  }
+});
+
+
 const currentCitation = computed(() => {
 const currentCitation = computed(() => {
-  // Utilisation d'une expression régulière pour vérifier le chemin
   if (/^\/opentalent_school\/?$/.test(route.path)) {
   if (/^\/opentalent_school\/?$/.test(route.path)) {
     return "Pour les petits comme pour les grands établissements d’enseignement artistique.";
     return "Pour les petits comme pour les grands établissements d’enseignement artistique.";
   } else if (route.path === "/opentalent_artist") {
   } else if (route.path === "/opentalent_artist") {