فهرست منبع

fix switch alert message

Olivier Massot 2 سال پیش
والد
کامیت
6adb801970
2فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 4 2
      components/Layout/AlertBar/SwitchUser.vue
  2. 1 3
      composables/data/useEntityFetch.ts

+ 4 - 2
components/Layout/AlertBar/SwitchUser.vue

@@ -7,9 +7,11 @@ Barre qui s'affiche lorsque l'utilisateur possède un compte multi user
 <template>
   <UiSystemBar v-if="show" class="theme-info">
     <v-icon small icon="fas fa-info-circle" />
-    <span v-html="$t('multi_account_alert', { fullName })" />&nbsp;
+    <span>
+      {{ $t('multi_account_alert_part1') }} <strong>{{ fullName }}</strong> {{ $t('multi_account_alert_part2') }}
+    </span>
 
-    <v-icon class="pl-1" small icon="fa fa-users"/> &nbsp;{{$t('multi_account_alert_next')}}
+    <v-icon class="pl-1" small icon="fa fa-users"/> &nbsp;{{$t('multi_account_alert_part3')}}
   </UiSystemBar>
 </template>
 

+ 1 - 3
composables/data/useEntityFetch.ts

@@ -25,9 +25,7 @@ export const useEntityFetch = (lazy: boolean = false): useEntityFetchReturnType
     const fetchCollection = (model: typeof ApiResource, parent: ApiResource | null = null, query: Ref<AssociativeArray> = ref([])) => useAsyncData(
         model.entity + '_many',
         async () => {
-            const data = await em.fetchCollection(model, parent, query.value)
-            // console.log(data)
-            return data
+            return em.fetchCollection(model, parent, query.value)
         },
         { lazy }
     )