Olivier Massot 6 tháng trước cách đây
mục cha
commit
cd3e2da167
3 tập tin đã thay đổi với 6 bổ sung10 xóa
  1. 5 8
      components/Layout/Dialog/RefreshNeeded.vue
  2. 1 1
      middleware/routing.global.ts
  3. 0 1
      stores/sse.ts

+ 5 - 8
components/Layout/Dialog/RefreshNeeded.vue

@@ -3,10 +3,7 @@ Une boite de dialogue signalant que la page doit être rechargée (par exemple
 parce que le accessProfile a été modifié dans un autre onglet).
 -->
 <template>
-  <LazyLayoutDialog
-    :show="showRefreshNeededDialog"
-    theme="info"
-  >
+  <LazyLayoutDialog :show="showRefreshNeededDialog" theme="info">
     <template #dialogType>{{ $t('information') }}</template>
     <template #dialogTitle>{{ $t('refresh_needed') }}</template>
     <template #dialogText>
@@ -32,7 +29,9 @@ const accessProfileUpdated = ref(false)
 const accessProfileStore = useAccessProfileStore()
 const pageStore = usePageStore()
 
-const showRefreshNeededDialog = computed(() => accessProfileUpdated.value && !pageStore.loading)
+const showRefreshNeededDialog = computed(
+  () => accessProfileUpdated.value && !pageStore.loading,
+)
 
 onMounted(() => {
   accessProfileStore.$subscribe(() => {
@@ -40,12 +39,10 @@ onMounted(() => {
   })
 })
 
-
 const refreshPage = () => {
   pageStore.loading = true
   window.location.reload()
 }
 </script>
 
-<style scoped lang="scss">
-</style>
+<style scoped lang="scss"></style>

+ 1 - 1
middleware/routing.global.ts

@@ -19,7 +19,7 @@ export default defineNuxtRouteMiddleware((to, _) => {
     const runtimeConfig = useRuntimeConfig()
     if (
       runtimeConfig.public.env === 'production' &&
-      (name === 'cmf_licence_page')
+      name === 'cmf_licence_page'
     ) {
       const { redirectToHome } = useRedirect()
       redirectToHome()

+ 0 - 1
stores/sse.ts

@@ -17,7 +17,6 @@ export const useSseStore = defineStore('sse', () => {
     switch (event.operation) {
       case 'update':
       case 'create':
-
         if (model.entity === 'my_profile') {
           const accessProfileStore = useAccessProfileStore()
           accessProfileStore.initiateProfile(instance)