From 4e7ca3bd1a558eb8ecf6fd591e0bd0068f682dd2 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Wed, 29 Jun 2022 16:21:32 +0200 Subject: [PATCH] Toggle MainNavigationBar --- client/src/App.vue | 6 ++++++ client/src/components/MainNavigationBar.vue | 4 +++- client/src/stores/app.ts | 16 ++++++++++++++++ client/src/stores/circle.ts | 11 ++++++++++- client/src/views/CircleView.vue | 4 ---- client/src/views/DashboardView.vue | 4 ---- client/src/views/HomeView.vue | 5 +---- client/src/views/LearningPathView.vue | 4 ---- client/src/views/LoginView.vue | 4 ---- client/src/views/MediaView.vue | 4 ---- client/src/views/MessagesView.vue | 4 ---- client/src/views/ProfileView.vue | 4 ---- client/src/views/ShopView.vue | 4 ---- client/src/views/StyelGuideView.vue | 3 --- 14 files changed, 36 insertions(+), 41 deletions(-) create mode 100644 client/src/stores/app.ts diff --git a/client/src/App.vue b/client/src/App.vue index 4036fbd1..8dd258e8 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,8 +1,14 @@ diff --git a/client/src/components/MainNavigationBar.vue b/client/src/components/MainNavigationBar.vue index 0dc61f18..64d53f5c 100644 --- a/client/src/components/MainNavigationBar.vue +++ b/client/src/components/MainNavigationBar.vue @@ -4,11 +4,13 @@ import * as log from 'loglevel'; import { reactive } from 'vue'; import { useUserStore } from '@/stores/user'; import { useRoute } from 'vue-router'; +import { useAppStore } from '@/stores/app'; log.debug('MainNavigationBar.vue created'); const route = useRoute() const userStore = useUserStore(); +const appStore = useAppStore(); const state = reactive({showMenu: false}); function toggleNav() { @@ -27,7 +29,7 @@ function menuActive(checkPath) {