File tree Expand file tree Collapse file tree 2 files changed +23
-9
lines changed
Expand file tree Collapse file tree 2 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+ <div v-if =" error" class =" af-login-modal-error flex items-center p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400" role =" alert" >
3+ <svg class =" flex-shrink-0 inline w-4 h-4 me-3" aria-hidden =" true" xmlns =" http://www.w3.org/2000/svg" fill =" currentColor" viewBox =" 0 0 20 20" >
4+ <path d =" M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z" />
5+ </svg >
6+ <span class =" sr-only" >{{ $t('Info') }}</span >
7+ <div >
8+ {{ error }}
9+ </div >
10+ </div >
11+ </template >
12+
13+ <script setup>
14+
15+ defineProps ({
16+ error: {
17+ type: String ,
18+ default: null
19+ }
20+ });
21+ </script >
Original file line number Diff line number Diff line change 9292 :meta =" c.meta"
9393 />
9494
95- <div v-if =" error" class =" af-login-modal-error flex items-center p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400" role =" alert" >
96- <svg class =" flex-shrink-0 inline w-4 h-4 me-3" aria-hidden =" true" xmlns =" http://www.w3.org/2000/svg" fill =" currentColor" viewBox =" 0 0 20 20" >
97- <path d =" M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z" />
98- </svg >
99- <span class =" sr-only" >{{ $t('Info') }}</span >
100- <div >
101- {{ error }}
102- </div >
103- </div >
95+ <ErrorMessage :error =" error" />
10496
10597 <div v-if =" loginPromptHTML"
10698 class =" flex items-center p-4 mb-4 text-sm text-lightLoginViewPromptText rounded-lg bg-lightLoginViewPromptBackground dark:bg-darkLoginViewPromptBackground dark:text-darkLoginViewPromptText" role =" alert"
@@ -136,6 +128,7 @@ import { callAdminForthApi, loadFile } from '@/utils';
136128import { useRoute , useRouter } from ' vue-router' ;
137129import { Button , Checkbox , Input } from ' @/afcl' ;
138130import { useI18n } from ' vue-i18n' ;
131+ import ErrorMessage from ' @/components/ErrorMessage.vue' ;
139132
140133const { t } = useI18n ();
141134
You can’t perform that action at this time.
0 commit comments