From cb0e044fb4a7491c0a25f0efdba164ba2ad7c006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 12 Oct 2022 17:16:30 +0200 Subject: [PATCH] Refine GQL logout in admin interface --- admin/src/components/NavBar.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/admin/src/components/NavBar.vue b/admin/src/components/NavBar.vue index e5452428b..574c4ab60 100644 --- a/admin/src/components/NavBar.vue +++ b/admin/src/components/NavBar.vue @@ -34,18 +34,16 @@ export default { name: 'navbar', methods: { async logout() { + window.location.assign(CONFIG.WALLET_URL) + // window.location = CONFIG.WALLET_URL this.$apollo .mutate({ mutation: logout, }) .then(() => { - window.location.assign(CONFIG.WALLET_URL) - // window.location = CONFIG.WALLET_URL this.$store.dispatch('logout') }) .catch(() => { - window.location.assign(CONFIG.WALLET_URL) - // window.location = CONFIG.WALLET_URL this.$store.dispatch('logout') }) },