diff options
author | Derick Montague <derick.montague@ibm.com> | 2020-02-13 00:55:42 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-02-14 17:55:23 +0300 |
commit | c031b6988d6381ae1d2ecefd04e8c2af47f0ff4a (patch) | |
tree | 6baf3d27353766f9c5bc5fc3ec943c6a199864de /src/components/AppHeader/AppHeader.vue | |
parent | 537c6cb6b293665826efc5b1ef9f9c9c2e6a0d39 (diff) | |
download | webui-vue-c031b6988d6381ae1d2ecefd04e8c2af47f0ff4a.tar.xz |
Clear application state on logout
Remove the authError state property from the logout mutation
since the the authError would not be in the true state after
a successful login.
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: Ibfe8b07c4e9e37dfab4435596c12e9a36556a714
Diffstat (limited to 'src/components/AppHeader/AppHeader.vue')
-rw-r--r-- | src/components/AppHeader/AppHeader.vue | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/components/AppHeader/AppHeader.vue b/src/components/AppHeader/AppHeader.vue index b2d29c95..880c428f 100644 --- a/src/components/AppHeader/AppHeader.vue +++ b/src/components/AppHeader/AppHeader.vue @@ -66,9 +66,7 @@ export default { this.$store.dispatch('global/getHostStatus'); }, logout() { - this.$store.dispatch('authentication/logout').then(() => { - this.$router.push('/login'); - }); + this.$store.dispatch('authentication/logout'); } } }; |