From 495350fa83dac063751c38dcfb20f09f80414ad8 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 9 May 2020 22:31:33 +0200 Subject: [PATCH] Fix not redirecting to login page after logging out --- src/App.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 31ff403b..61f01375 100644 --- a/src/App.vue +++ b/src/App.vue @@ -307,6 +307,7 @@ methods: { logout() { this.$store.dispatch('auth/logout') + router.push({name: 'login'}) }, loadNamespaces() { this.$store.dispatch('namespaces/loadNamespaces') @@ -317,9 +318,10 @@ } }, doStuffAfterRoute(e) { - if(this.$store.state[IS_FULLPAGE]) { + if (this.$store.state[IS_FULLPAGE]) { this.$store.commit(IS_FULLPAGE, false) } + this.loadNamespacesIfNeeded(e) this.mobileMenuActive = false this.userMenuActive = false