Fix not redirecting to login page after logging out
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-05-09 22:31:33 +02:00
parent f878063015
commit 495350fa83
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 1 deletions

View File

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