From c1a7dcd1eb29a3f981e510978b0900c93e8f901a Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Thu, 6 Feb 2025 20:27:25 +0000 Subject: [PATCH] making UI not jump on signin --- src/components/NavBar.vue | 7 +++++-- src/components/PermissionNeeded.vue | 7 ++++++- src/store/index.js | 17 ++++++----------- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 6e437d0..67e45f1 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -24,7 +24,7 @@ - + active @@ -88,7 +88,10 @@ export default { return "This account has access to at least one feature."; } return "This account is inactive, please reach out to the Bellingcat team for access."; - } + }, + loadingUserState() { + return this.$store.state?.loadingUserState; + } }, }; diff --git a/src/components/PermissionNeeded.vue b/src/components/PermissionNeeded.vue index 22801b2..31f6afa 100644 --- a/src/components/PermissionNeeded.vue +++ b/src/components/PermissionNeeded.vue @@ -1,5 +1,5 @@