From c031b6988d6381ae1d2ecefd04e8c2af47f0ff4a Mon Sep 17 00:00:00 2001 From: Derick Montague Date: Wed, 12 Feb 2020 15:55:42 -0600 Subject: 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 Change-Id: Ibfe8b07c4e9e37dfab4435596c12e9a36556a714 --- src/components/AppHeader/AppHeader.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/components') 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'); } } }; -- cgit v1.2.3