+import AlertError from '@/components/AlertError.vue';
import InputError from '@/components/InputError.vue';
import { Button } from '@/components/ui/button';
import {
@@ -29,7 +30,7 @@ const props = defineProps
();
const isOpen = defineModel('isOpen');
const { copy, copied } = useClipboard();
-const { qrCodeSvg, manualSetupKey, clearSetupData, fetchSetupData } =
+const { qrCodeSvg, manualSetupKey, clearSetupData, fetchSetupData, errors } =
useTwoFactorAuth();
const showVerificationStep = ref(false);
@@ -150,79 +151,82 @@ watch(
class="relative flex w-auto flex-col items-center justify-center space-y-5"
>
-
+
+
-
-
-
+ v-if="!qrCodeSvg"
+ class="absolute inset-0 z-10 flex aspect-square h-auto w-full animate-pulse items-center justify-center bg-background"
+ >
+
+
+
-