From 7702b88083865d7896e1a0e658f4b69725e554e0 Mon Sep 17 00:00:00 2001 From: mahula Date: Wed, 12 Oct 2022 16:59:51 +0200 Subject: [PATCH 1/4] add link computation to auth nav bar --- frontend/src/components/Auth/AuthNavbar.vue | 14 ++++++++++++-- frontend/src/components/Auth/AuthNavbarSmall.vue | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Auth/AuthNavbar.vue b/frontend/src/components/Auth/AuthNavbar.vue index 73602c48a..0ff10cb78 100644 --- a/frontend/src/components/Auth/AuthNavbar.vue +++ b/frontend/src/components/Auth/AuthNavbar.vue @@ -18,9 +18,9 @@ - {{ $t('signup') }} + {{ $t('signup') }} {{ $t('math.pipe') }} - {{ $t('signin') }} + {{ $t('signin') }} @@ -36,6 +36,16 @@ export default { sheet: '/img/template/Blaetter.png', } }, + computed: { + login() { + if (this.$route.params.code) return '/login/' + this.$route.params.code + return '/login' + }, + register() { + if (this.$route.params.code) return '/register/' + this.$route.params.code + return '/register' + }, + }, } diff --git a/frontend/src/components/Auth/AuthNavbarSmall.vue b/frontend/src/components/Auth/AuthNavbarSmall.vue index cc0087560..0500a9dc6 100644 --- a/frontend/src/components/Auth/AuthNavbarSmall.vue +++ b/frontend/src/components/Auth/AuthNavbarSmall.vue @@ -2,9 +2,9 @@ @@ -13,6 +13,16 @@