Skip to content

Commit c0c9f21

Browse files
committed
Small fix login page
1 parent 5e30cac commit c0c9f21

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pages/login.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</div>
3535
</div>
3636

37-
<button class="btn w-full btn-success mt-8" :disabled="loading" :class=" { 'loading' : loading }" @click="singIn">{{ $t('loginPage.actions.singIn') }}</button>
37+
<button class="btn w-full btn-success mt-8" :disabled="loading" @click="singIn">{{ $t('loginPage.actions.singIn') }}</button>
3838

3939
<div class="w-full flex justify-end mt-2" v-if="registrationEnabled">
4040
<div class="text-base-content text-sm underline" :class="{ 'text-opacity-50' : loading}">
@@ -111,8 +111,9 @@ const singIn = async () => {
111111
112112
$auth.auth(data.value.token, data.value.lifetimeDays);
113113
114-
loading.value = false;
115-
navigateTo("/");
114+
navigateTo("/").then(() => {
115+
loading.value = false;
116+
})
116117
}
117118
118119
const registrationEnabled = configs.registration.enabled;

0 commit comments

Comments
 (0)