From 90079c6c6ce44791e05357f5368b16943f2efdf8 Mon Sep 17 00:00:00 2001 From: jasonchung1871 <101672465+jasonchung1871@users.noreply.github.com> Date: Mon, 13 May 2024 16:27:46 -0700 Subject: [PATCH] Login button visible (#1350) * Update BaseAuthButton.vue wrong conditional on login button * Fixed login button showing login button was showing even though the user was authenticated. removed it and removed from the router all instances of hasLogin because it gets set in the router but never actually used anywhere except in BaseAuthButton. BaseAuthButton can already check if the user is authenticated by the store though. --- .../src/components/base/BaseAuthButton.vue | 6 +-- app/frontend/src/router.js | 20 ---------- .../components/base/BaseAuthButton.spec.js | 38 +------------------ .../tests/unit/views/form/Create.spec.js | 16 ++++++++ .../tests/unit/views/form/Design.spec.js | 5 ++- 5 files changed, 22 insertions(+), 63 deletions(-) diff --git a/app/frontend/src/components/base/BaseAuthButton.vue b/app/frontend/src/components/base/BaseAuthButton.vue index 8a559a6e9..e07fb38d1 100755 --- a/app/frontend/src/components/base/BaseAuthButton.vue +++ b/app/frontend/src/components/base/BaseAuthButton.vue @@ -1,7 +1,5 @@