Merge pull request #19971 from joeried/visual-feedback-for-2fa-code-creation
Add visual feedback while creating 2fa backup codes
This commit is contained in:
commit
826b5a7425
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -2,8 +2,10 @@
|
|||
<div>
|
||||
<button v-if="!enabled"
|
||||
id="generate-backup-codes"
|
||||
:disabled="generatingCodes"
|
||||
@click="generateBackupCodes">
|
||||
{{ t('twofactor_backupcodes', 'Generate backup codes') }}
|
||||
<span :class="{'icon-loading-small': generatingCodes}" />
|
||||
</button>
|
||||
<template v-else>
|
||||
<p>
|
||||
|
@ -28,7 +30,6 @@
|
|||
</p>
|
||||
<p>
|
||||
<button id="generate-backup-codes"
|
||||
:class="{'icon-loading-small': generatingCodes}"
|
||||
@click="generateBackupCodes">
|
||||
{{ t('twofactor_backupcodes', 'Regenerate backup codes') }}
|
||||
</button>
|
||||
|
|
Loading…
Reference in New Issue