aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Riedel <joeried@users.noreply.github.com>2020-03-15 20:11:40 +0100
committerJohannes Riedel <joeried@users.noreply.github.com>2020-03-19 16:43:49 +0100
commit38c0e7e34d627f51698a7f2409c39e5a9c1ae600 (patch)
tree052d3fe2e2c44736555dfeb6ca1ac1ec0928aa01
parent25ce3c434b66195bfb0b347de6125d0fa1538898 (diff)
downloadnextcloud-server-38c0e7e34d627f51698a7f2409c39e5a9c1ae600.tar.gz
nextcloud-server-38c0e7e34d627f51698a7f2409c39e5a9c1ae600.zip
Add visual feedback while creating 2fa backup codes
Signed-off-by: Johannes Riedel <joeried@users.noreply.github.com>
-rw-r--r--apps/twofactor_backupcodes/src/views/PersonalSettings.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/twofactor_backupcodes/src/views/PersonalSettings.vue b/apps/twofactor_backupcodes/src/views/PersonalSettings.vue
index fa03aae2f13..a3f5b84ff5d 100644
--- a/apps/twofactor_backupcodes/src/views/PersonalSettings.vue
+++ b/apps/twofactor_backupcodes/src/views/PersonalSettings.vue
@@ -2,7 +2,9 @@
<div>
<button v-if="!enabled"
id="generate-backup-codes"
+ :disabled="generatingCodes"
@click="generateBackupCodes">
+ <span :class="{'icon-loading-small': generatingCodes}" />
{{ t('twofactor_backupcodes', 'Generate backup codes') }}
</button>
<template v-else>
@@ -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>