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
diff --git a/src/components/AppHeader/AppHeader.vue b/src/components/AppHeader/AppHeader.vue
index b2d29c9..880c428 100644
--- a/src/components/AppHeader/AppHeader.vue
+++ b/src/components/AppHeader/AppHeader.vue
@@ -66,9 +66,7 @@
this.$store.dispatch('global/getHostStatus');
},
logout() {
- this.$store.dispatch('authentication/logout').then(() => {
- this.$router.push('/login');
- });
+ this.$store.dispatch('authentication/logout');
}
}
};