aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>