From f6b70bb0a1abf9515874f2e8b1423a22d62a51c9 Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 9 Sep 2019 17:59:58 +0000 Subject: [PATCH] Fixed namespace loading (#32) --- src/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index db5c4c172..c27ffad44 100644 --- a/src/App.vue +++ b/src/App.vue @@ -190,7 +190,7 @@ } }, created() { - if (auth.user.authenticated && auth.user.infos.type === authTypes.USER && this.$route.params.name === 'home') { + if (auth.user.authenticated && auth.user.infos.type === authTypes.USER && (this.$route.params.name === 'home' || this.namespaces.length === 0)) { this.loadNamespaces() } }, @@ -216,7 +216,7 @@ }) }, loadNamespacesIfNeeded(e){ - if (auth.user.authenticated && auth.user.infos.type === authTypes.USER && e.name === 'home') { + if (auth.user.authenticated && auth.user.infos.type === authTypes.USER && (e.name === 'home' || this.namespaces.length === 0)) { this.loadNamespaces() } },