From 0fe96e9455488adffa2ce510bf4b7274796d39e1 Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 28 Feb 2023 15:00:51 +0100 Subject: [PATCH] Updated drawer state --- src/components/NavBar.vue | 8 +++++++- src/pages/Claim/ClaimList.vue | 6 +++--- src/pages/Dashboard/DashboardMain.vue | 11 ++++++++--- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 246647332..72599d0bc 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -57,7 +57,13 @@ onMounted(() => stateStore.setMounted()); - + {{ t('globals.collapseMenu') }} diff --git a/src/pages/Claim/ClaimList.vue b/src/pages/Claim/ClaimList.vue index 69c436ee9..328b93f20 100644 --- a/src/pages/Claim/ClaimList.vue +++ b/src/pages/Claim/ClaimList.vue @@ -12,13 +12,13 @@ import TeleportSlot from 'components/ui/TeleportSlot.vue'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; import ClaimFilter from './ClaimFilter.vue'; -const state = useStateStore(); +const stateStore = useStateStore(); const router = useRouter(); const quasar = useQuasar(); const { t } = useI18n(); -onMounted(() => state.toggleRightDrawer()); -onUnmounted(() => state.toggleRightDrawer()); +onMounted(() => stateStore.toggleRightDrawer()); +onUnmounted(() => stateStore.toggleRightDrawer()); function stateColor(code) { if (code === 'pending') return 'green'; diff --git a/src/pages/Dashboard/DashboardMain.vue b/src/pages/Dashboard/DashboardMain.vue index aa74d1479..301967afb 100644 --- a/src/pages/Dashboard/DashboardMain.vue +++ b/src/pages/Dashboard/DashboardMain.vue @@ -1,11 +1,11 @@