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:
Roeland Jago Douma 2020-03-20 08:45:54 +01:00 committed by GitHub
commit 826b5a7425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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>