Skip to content

Commit 3473d00

Browse files
committed
fix: auth buttons loading
1 parent 1d2c5f8 commit 3473d00

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/views/auth/ForgotPassword.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const submit = () => {
3030
};
3131
3232
const loading = computed(() => {
33-
return submittingRequest.value || authStore.fetchingCsrfToken;
33+
return submittingRequest.value || authStore.fetchingCsrfToken || authStore.fetchingUser;
3434
});
3535
3636
onMounted(() => {

src/views/auth/Login.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const submit = () => {
4343
};
4444
4545
const loading = computed(() => {
46-
return loggingIn.value || authStore.fetchingCsrfToken;
46+
return loggingIn.value || authStore.fetchingCsrfToken || authStore.fetchingUser;
4747
});
4848
4949
onMounted(() => {

src/views/auth/Register.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const submit = () => {
3333
};
3434
3535
const loading = computed(() => {
36-
return registering.value || authStore.fetchingCsrfToken;
36+
return registering.value || authStore.fetchingCsrfToken || authStore.fetchingUser;
3737
});
3838
3939
onMounted(() => {

src/views/auth/ResetPassword.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const submit = () => {
4545
};
4646
4747
const loading = computed(() => {
48-
return resetting.value || authStore.fetchingCsrfToken;
48+
return resetting.value || authStore.fetchingCsrfToken || authStore.fetchingUser;
4949
});
5050
5151
onMounted(() => {

0 commit comments

Comments
 (0)