From 2bd7cca8a2a5d08d93a0b252a225dad802b75c80 Mon Sep 17 00:00:00 2001 From: Pavlo Kulyk Date: Fri, 19 Jun 2026 14:41:25 +0300 Subject: [PATCH] fix: add loader while oauthRedirecting --- adminforth/spa/src/views/LoginView.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/adminforth/spa/src/views/LoginView.vue b/adminforth/spa/src/views/LoginView.vue index 2be2743c0..2c498289c 100644 --- a/adminforth/spa/src/views/LoginView.vue +++ b/adminforth/spa/src/views/LoginView.vue @@ -8,7 +8,7 @@ }: {}" > - +
+ +
+
@@ -112,6 +117,7 @@ :is="getCustomComponent(formatComponent(c))" :meta="formatComponent(c).meta" @update:disableLoginButton="setDisableLoginButton($event)" + @update:oauthRedirecting="oauthRedirecting = $event" />
@@ -132,8 +138,8 @@ import { useCoreStore } from '@/stores/core'; import { useUserStore } from '@/stores/user'; import { IconEyeSolid, IconEyeSlashSolid } from '@iconify-prerendered/vue-flowbite'; import { callAdminForthApi, loadFile } from '@/utils'; -import { useRouter } from 'vue-router'; -import { Button, Checkbox, Input } from '@/afcl'; +import { useRouter, useRoute } from 'vue-router'; +import { Button, Checkbox, Input, Spinner } from '@/afcl'; import ErrorMessage from '@/components/ErrorMessage.vue'; const passwordInput = ref | null>(null); @@ -143,6 +149,8 @@ const username = ref(''); const password = ref(''); const router = useRouter(); +const route = useRoute(); +const oauthRedirecting = ref('start_oauth' in route.query && route.query.start_oauth !== ''); const inProgress = ref(false); const isSuccess = ref(false); const coreStore = useCoreStore();