Update 2fa.qrdialog.vue
This commit is contained in:
parent
00fabde44d
commit
15e459fa36
|
|
@ -80,9 +80,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<div class="_gaps">
|
<div class="_gaps">
|
||||||
<MkInfo warn>{{ i18n.ts._2fa.backupCodesDescription }}</MkInfo>
|
<MkInfo warn>{{ i18n.ts._2fa.backupCodesDescription }}</MkInfo>
|
||||||
|
|
||||||
<div v-for="code in backupCodes" :key="code" class="_gaps_s">
|
<ul v-for="code in backupCodes" :key="code" class="_gaps_s" style="margin: 0;">
|
||||||
<div class="_monospace">{{ code }}</div>
|
<li class="_monospace">{{ code }}</li>
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -107,6 +107,7 @@ import { i18n } from '@/i18n';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import MkFolder from '@/components/MkFolder.vue';
|
import MkFolder from '@/components/MkFolder.vue';
|
||||||
import MkInfo from '@/components/MkInfo.vue';
|
import MkInfo from '@/components/MkInfo.vue';
|
||||||
|
import { confetti } from '@/scripts/confetti';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
twoFactorData: {
|
twoFactorData: {
|
||||||
|
|
@ -136,6 +137,10 @@ async function tokenDone() {
|
||||||
backupCodes.value = res.backupCodes;
|
backupCodes.value = res.backupCodes;
|
||||||
|
|
||||||
page.value++;
|
page.value++;
|
||||||
|
|
||||||
|
confetti({
|
||||||
|
duration: 1000 * 3,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function allDone() {
|
function allDone() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue