From 464283fccb2b87759983a6798a3ad7a9b4ffa1dc Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 20 Apr 2021 11:53:13 +0200 Subject: [PATCH 1/2] menu right remove --- .../src/components/SidebarPlugin/SideBar.vue | 42 ++-------- frontend/src/routes/routes.js | 1 + frontend/src/views/Layout/DashboardNavbar.vue | 79 ++++--------------- 3 files changed, 24 insertions(+), 98 deletions(-) diff --git a/frontend/src/components/SidebarPlugin/SideBar.vue b/frontend/src/components/SidebarPlugin/SideBar.vue index 054381df8..065dd8f64 100755 --- a/frontend/src/components/SidebarPlugin/SideBar.vue +++ b/frontend/src/components/SidebarPlugin/SideBar.vue @@ -14,43 +14,13 @@ diff --git a/frontend/src/routes/routes.js b/frontend/src/routes/routes.js index b50f2a7b1..ff09ee1ac 100755 --- a/frontend/src/routes/routes.js +++ b/frontend/src/routes/routes.js @@ -10,6 +10,7 @@ const routes = [ }, { path: '/profile', + name: 'Profile', component: () => import('../views/Pages/UserProfileCard.vue'), }, { diff --git a/frontend/src/views/Layout/DashboardNavbar.vue b/frontend/src/views/Layout/DashboardNavbar.vue index ff1fb8ebf..bbd04f041 100755 --- a/frontend/src/views/Layout/DashboardNavbar.vue +++ b/frontend/src/views/Layout/DashboardNavbar.vue @@ -4,83 +4,33 @@ class="navbar-top navbar-expand" :class="{ 'navbar-dark': type === 'default' }" > - - {{ $route.name }} - - + - - - - - {{ $store.state.email }} + + + + {{ $store.state.email }} + + + + - - - - - - - - - - + + + From 3c84382e45847556856861a07ab20523b93186ed Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 21 Apr 2021 15:52:09 +0200 Subject: [PATCH 2/2] remove beforeDestroy as noone can say what is it for --- frontend/src/views/Layout/DashboardNavbar.vue | 5 ----- 1 file changed, 5 deletions(-) diff --git a/frontend/src/views/Layout/DashboardNavbar.vue b/frontend/src/views/Layout/DashboardNavbar.vue index 751e947b4..7b0964f2c 100755 --- a/frontend/src/views/Layout/DashboardNavbar.vue +++ b/frontend/src/views/Layout/DashboardNavbar.vue @@ -70,10 +70,5 @@ export default { this.$router.push('/login') }, }, - beforeDestroy() { - if (this.$sidebar.showSidebar) { - this.$sidebar.showSidebar = false - } - }, }