Przeglądaj źródła

correction après relecture

Vincent 4 miesięcy temu
rodzic
commit
abefa8d8e9

+ 1 - 1
components/Ui/Input/TreeSelect.vue

@@ -278,7 +278,7 @@ const onMenuUpdate = (isOpen: boolean) => {
     expandParentsOfSelectedItems()
   }
   // Réinitialiser la recherche quand le menu se ferme
-  else if (!isOpen && searchText.value) {
+  else if (searchText.value) {
     searchText.value = ''
     onSearchInput()
   }

+ 6 - 1
i18n/lang/fr/general.json

@@ -1,6 +1,11 @@
 {
+  "agenda_def": "Pour la promotion de votre structure et de vos événements",
+  "manager_def": "Pour les fédérations, confédérations et institutions publiques",
+  "school_def": "Pour tous les établissements d’enseignement artistique",
+  "artist_def": "Pour les orchestres, les chorales, compagnies et troupes artistiques",
+  "our_solution": "DÉCOUVREZ NOS SOLUTIONS",
   "no_future_event": "Vous n'avez aucun événement à venir",
-  "no_past_event": "Vous n'avez aucun événement passée",
+  "no_past_event": "Vous n'avez aucun événement passé",
   "futur_event": "Mes événements à venir",
   "past_event": "Mes événements passés",
   "add_event": "Ajouter un événement",

+ 6 - 6
layouts/freemium.vue

@@ -25,37 +25,37 @@
 
           <v-row v-if="smAndUp">
             <v-col cols="12" sm="3">
-              <p class="text-h6 font-weight-bold text-center">DÉCOUVREZ NOS SOLUTIONS</p>
+              <p class="text-h6 font-weight-bold text-center">{{$t('DÉCOUVREZ NOS SOLUTIONS')}}</p>
             </v-col>
             <v-col cols="12" sm="2" class="text-center text-product">
               <a href="https://logiciels.opentalent.fr/opentalent-artist" target="_blank">
                 <img src="/images/Opentalent_Artist-Blanc.png" height="70" class="mb-2" />
-                <p>Pour les orchestres, les chorales, compagnies et troupes artistiques</p>
+                <p>{{$t('artist_def')}}</p>
               </a>
             </v-col>
             <v-col cols="12" sm="2" class="text-center text-product">
               <a href="https://logiciels.opentalent.fr/opentalent-school" target="_blank">
                 <img src="/images/Opentalent_School-Blanc.png" height="70" class="mb-2" />
-                <p>Pour tous les établissements d’enseignement artistique</p>
+                <p>{{$t('school_def')}}</p>
               </a>
             </v-col>
             <v-col cols="12" sm="2" class="text-center text-product">
               <a href="https://logiciels.opentalent.fr/opentalent-manager" target="_blank">
                 <img src="/images/Opentalent_Manager-Blanc.png" height="70" class="mb-2" />
-                <p>Pour les fédérations, confédérations et institutions publiques</p>
+                <p>{{$t('manager_def')}}</p>
               </a>
             </v-col>
             <v-col cols="12" sm="2" class="text-center text-product">
               <a href="https://opentalent.fr/" target="_blank">
                 <img src="/images/OT_Logo_Agenda.png" height="70" class="mb-2" />
-                <p>Pour la promotion de votre structure et de vos événements</p>
+                <p>{{$t('agenda_def')}}</p>
               </a>
             </v-col>
           </v-row>
 
           <v-row v-else>
             <v-col cols="12">
-              <p class="text-h6 font-weight-bold text-center">DÉCOUVREZ NOS SOLUTIONS</p>
+              <p class="text-h6 font-weight-bold text-center">{{$t('DÉCOUVREZ NOS SOLUTIONS')}}</p>
             </v-col>
             <v-col cols="3" class="text-center text-product">
               <a href="https://logiciels.opentalent.fr/opentalent-artist" target="_blank">

+ 8 - 10
pages/freemium/dashboard.vue

@@ -72,8 +72,8 @@
   </v-container>
 
   <LayoutDialogTrialAlreadyDid
-    :show="showDialogTrialAllReadyDid"
-    @close-dialog="showDialogTrialAllReadyDid = false"
+    :show="showDialogTrialAlReadyDid"
+    @close-dialog="showDialogTrialAlReadyDid = false"
   />
 
 </template>
@@ -99,15 +99,17 @@ import Country from "~/models/Core/Country";
 import DateUtils from "~/services/utils/dateUtils";
 import UrlUtils from "~/services/utils/urlUtils";
 import {useApiLegacyRequestService} from "~/composables/data/useApiLegacyRequestService";
+import {useAdminUrl} from "~/composables/utils/useAdminUrl";
 
 //Ref Définition
 const runtimeConfig = useRuntimeConfig()
 const { fetch, fetchCollection } = useEntityFetch()
 const { apiRequestService } = useApiLegacyRequestService()
+const {makeAdminUrl} = useAdminUrl()
 const tab = ref(null)
 const upcomingPage = ref(1)
 const pastPage = ref(1)
-const showDialogTrialAllReadyDid: Ref<boolean> = ref(false)
+const showDialogTrialAlReadyDid: Ref<boolean> = ref(false)
 
 //Fetch
 const { data: organization, status:statusOrganization } = fetch(Organization)
@@ -162,15 +164,11 @@ function fetchEvents(past:boolean = false){
 async function startTrial() {
   try {
     await apiRequestService.get('/trial/is_available')
-    const v1BaseURL =
-      runtimeConfig.baseUrlAdminLegacy ||
-      runtimeConfig.public.baseUrlAdminLegacy
-    await navigateTo(UrlUtils.join(v1BaseURL, '#', 'trial'), {
+    await navigateTo(makeAdminUrl('trial'), {
       external: true,
     })
   } catch (error) {
-    console.log(error)
-    showDialogTrialAllReadyDid.value = true
+    showDialogTrialAlReadyDid.value = true
   }
 }
 
@@ -185,7 +183,7 @@ onUnmounted(() => {
 
 </script>
 
-<style scoped>
+<style scoped lang="scss">
 
 .tabs-title{
   margin-top: 20px;