|
|
@@ -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>
|