mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-12 01:09:35 +01:00
Add spinners when OTPs are refreshing on the main view
This commit is contained in:
parent
085eb25532
commit
9acc3be630
@ -150,12 +150,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<transition name="popLater">
|
<transition name="popLater">
|
||||||
<div v-show="$root.userPreferences.getOtpOnRequest == false && !editMode" class="has-text-right">
|
<div v-show="$root.userPreferences.getOtpOnRequest == false && !editMode" class="has-text-right">
|
||||||
<span v-if="account.otp != undefined" class="is-clickable has-nowrap has-text-grey is-size-5 ml-4" @click="copyOTP(account.otp.password)" @keyup.enter="copyOTP(account.otp.password)" :title="$t('commons.copy_to_clipboard')">
|
<span v-if="account.otp != undefined && isRenewingOTPs" class="has-nowrap has-text-grey has-text-centered is-size-5">
|
||||||
{{ displayPwd(account.otp.password) }}
|
|
||||||
</span>
|
|
||||||
<span v-else-if="isRenewingOTPs" class="has-nowrap has-text-grey has-text-centered is-size-5 ml-4">
|
|
||||||
<font-awesome-icon :icon="['fas', 'circle-notch']" spin />
|
<font-awesome-icon :icon="['fas', 'circle-notch']" spin />
|
||||||
</span>
|
</span>
|
||||||
|
<span v-else-if="account.otp != undefined && isRenewingOTPs == false" class="is-clickable has-nowrap has-text-grey is-size-5 ml-4" @click="copyOTP(account.otp.password)" @keyup.enter="copyOTP(account.otp.password)" :title="$t('commons.copy_to_clipboard')">
|
||||||
|
{{ displayPwd(account.otp.password) }}
|
||||||
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
<!-- get hotp button -->
|
<!-- get hotp button -->
|
||||||
<button class="button tag" :class="$root.showDarkMode ? 'is-dark' : 'is-white'" @click="showAccount(account)" :title="$t('twofaccounts.import.import_this_account')">
|
<button class="button tag" :class="$root.showDarkMode ? 'is-dark' : 'is-white'" @click="showAccount(account)" :title="$t('twofaccounts.import.import_this_account')">
|
||||||
|
Loading…
Reference in New Issue
Block a user