mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-26 15:01:54 +02:00
Use the twofaccounts store
This commit is contained in:
parent
e9d9f661ad
commit
a46084720e
@ -4,11 +4,13 @@
|
|||||||
import { useBusStore } from '@/stores/bus'
|
import { useBusStore } from '@/stores/bus'
|
||||||
import { useNotifyStore } from '@/stores/notify'
|
import { useNotifyStore } from '@/stores/notify'
|
||||||
import { UseColorMode } from '@vueuse/components'
|
import { UseColorMode } from '@vueuse/components'
|
||||||
|
import { useTwofaccounts } from '@/stores/twofaccounts'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const user = useUserStore()
|
const user = useUserStore()
|
||||||
const bus = useBusStore()
|
const bus = useBusStore()
|
||||||
const notify = useNotifyStore()
|
const notify = useNotifyStore()
|
||||||
|
const twofaccounts = useTwofaccounts()
|
||||||
|
|
||||||
const qrcodeInput = ref(null)
|
const qrcodeInput = ref(null)
|
||||||
const qrcodeInputLabel = ref(null)
|
const qrcodeInputLabel = ref(null)
|
||||||
@ -60,7 +62,7 @@
|
|||||||
<div class="container has-text-centered">
|
<div class="container has-text-centered">
|
||||||
<div class="columns quick-uploader">
|
<div class="columns quick-uploader">
|
||||||
<!-- trailer phrase that invite to add an account -->
|
<!-- trailer phrase that invite to add an account -->
|
||||||
<div class="column is-full quick-uploader-header" :class="{ 'is-invisible' : twofaccounts.length !== 0 }">
|
<div class="column is-full quick-uploader-header" :class="{ 'is-invisible' : twofaccounts.count !== 0 }">
|
||||||
{{ $t('twofaccounts.no_account_here') }}<br>
|
{{ $t('twofaccounts.no_account_here') }}<br>
|
||||||
{{ $t('twofaccounts.add_first_account') }}
|
{{ $t('twofaccounts.add_first_account') }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user