From 2fb4e9f3d43c049b9607a6b9de9422b92e02b43b Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Tue, 15 Jul 2025 11:23:27 +0200 Subject: [PATCH] make useAuthLinks more general and use it --- frontend/src/components/Auth/AuthNavbar.vue | 6 ++--- .../src/components/Auth/AuthNavbarSmall.vue | 6 ++--- .../LinkInformations/RedeemLoggedOut.vue | 6 ++--- .../RedeemSelectCommunity.vue | 6 ++--- frontend/src/components/Menu/NavItem.vue | 2 +- frontend/src/composables/useAuthLinks.js | 27 ++++++++++--------- frontend/src/pages/Login.vue | 12 ++++----- frontend/src/pages/Register.vue | 4 +-- frontend/src/pages/ResetPassword.spec.js | 7 ++--- frontend/src/pages/ResetPassword.vue | 14 ++++++---- frontend/src/routes/routes.js | 7 +++++ 11 files changed, 55 insertions(+), 42 deletions(-) diff --git a/frontend/src/components/Auth/AuthNavbar.vue b/frontend/src/components/Auth/AuthNavbar.vue index 710d15b30..be605bc86 100644 --- a/frontend/src/components/Auth/AuthNavbar.vue +++ b/frontend/src/components/Auth/AuthNavbar.vue @@ -8,11 +8,11 @@ - + {{ $t('signup') }} {{ $t('|') }} - + {{ $t('signin') }} @@ -25,7 +25,7 @@ import { useAuthLinks } from '@/composables/useAuthLinks' import NavItem from '../Menu/NavItem.vue' -const { login, register } = useAuthLinks() +const { routeWithParamsAndQuery } = useAuthLinks() const backgroundHeader = '/img/template/gradido_background_header.png' const logo = '/img/brand/gradido-logo_200x59.png' diff --git a/frontend/src/components/Auth/AuthNavbarSmall.vue b/frontend/src/components/Auth/AuthNavbarSmall.vue index e7917ffe8..bf1a4a364 100644 --- a/frontend/src/components/Auth/AuthNavbarSmall.vue +++ b/frontend/src/components/Auth/AuthNavbarSmall.vue @@ -2,9 +2,9 @@ @@ -14,7 +14,7 @@ import { useAuthLinks } from '@/composables/useAuthLinks' import NavItem from '../Menu/NavItem.vue' -const { login, register } = useAuthLinks() +const { routeWithParamsAndQuery } = useAuthLinks()