Skip to content

Commit 269fa69

Browse files
committed
refactor: replace forgot password button with router link for navigation
1 parent bc403a3 commit 269fa69

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

services/frontend/src/views/Login.vue

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ const allEnv = getAllEnv();
145145
const navigateToRegister = () => {
146146
router.push('/register')
147147
}
148-
149-
const navigateToForgotPassword = () => {
150-
router.push('/forgot-password')
151-
}
152148
</script>
153149

154150
<template>
@@ -202,13 +198,12 @@ const navigateToForgotPassword = () => {
202198
<div class="flex items-center justify-between">
203199
<FormLabel>{{ $t('login.form.password.label') }}</FormLabel>
204200
<div class="text-sm">
205-
<Button
206-
variant="link"
207-
class="font-medium text-indigo-600 hover:text-indigo-500 p-0 h-auto"
208-
@click="navigateToForgotPassword"
201+
<router-link
202+
to="/forgot-password"
203+
class="font-medium text-indigo-600 hover:text-indigo-500 text-sm"
209204
>
210205
{{ $t('login.form.forgotPassword') }}
211-
</Button>
206+
</router-link>
212207
</div>
213208
</div>
214209
<FormControl>

0 commit comments

Comments
 (0)