change link text when email is verified

This commit is contained in:
MaysWind
2023-09-09 21:33:17 +08:00
parent d2297b882f
commit 205363dd42
3 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -60,10 +60,11 @@
</v-col>
<v-col cols="12">
<router-link class="d-flex align-center justify-center" to="/login"
<router-link class="d-flex align-center justify-center" :to="verified ? '/' : '/login'"
:class="{ 'disabled': loading || resending }">
<v-icon :icon="icons.left"/>
<span>{{ $t('Back to log in') }}</span>
<span v-if="!verified">{{ $t('Back to log in') }}</span>
<span v-else-if="verified">{{ $t('Back to home') }}</span>
</router-link>
</v-col>
</v-row>