mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 09:44:26 +08:00
optimize ui
This commit is contained in:
@@ -66,7 +66,7 @@
|
|||||||
<div style="font-size: 18px"><b>{{ $t('Two-Factor Authentication') }}</b></div>
|
<div style="font-size: 18px"><b>{{ $t('Two-Factor Authentication') }}</b></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="padding-horizontal padding-bottom">
|
<div class="padding-horizontal padding-bottom">
|
||||||
<f7-list form no-hairlines class="no-margin-top margin-bottom">
|
<f7-list no-hairlines class="no-margin-top margin-bottom">
|
||||||
<f7-list-input
|
<f7-list-input
|
||||||
type="number"
|
type="number"
|
||||||
autocomplete="one-time-code"
|
autocomplete="one-time-code"
|
||||||
@@ -76,6 +76,7 @@
|
|||||||
:placeholder="$t('Passcode')"
|
:placeholder="$t('Passcode')"
|
||||||
:value="passcode"
|
:value="passcode"
|
||||||
@input="passcode = $event.target.value"
|
@input="passcode = $event.target.value"
|
||||||
|
@keyup.enter.native="verify"
|
||||||
></f7-list-input>
|
></f7-list-input>
|
||||||
<f7-list-input
|
<f7-list-input
|
||||||
outline
|
outline
|
||||||
@@ -84,6 +85,7 @@
|
|||||||
:placeholder="$t('Backup Code')"
|
:placeholder="$t('Backup Code')"
|
||||||
:value="backupCode"
|
:value="backupCode"
|
||||||
@input="backupCode = $event.target.value"
|
@input="backupCode = $event.target.value"
|
||||||
|
@keyup.enter.native="verify"
|
||||||
></f7-list-input>
|
></f7-list-input>
|
||||||
</f7-list>
|
</f7-list>
|
||||||
<f7-button large fill :class="{ 'disabled': twoFAInputIsEmpty || verifying }" :text="$t('Verify')" @click="verify"></f7-button>
|
<f7-button large fill :class="{ 'disabled': twoFAInputIsEmpty || verifying }" :text="$t('Verify')" @click="verify"></f7-button>
|
||||||
@@ -240,6 +242,10 @@ export default {
|
|||||||
const self = this;
|
const self = this;
|
||||||
const router = self.$f7router;
|
const router = self.$f7router;
|
||||||
|
|
||||||
|
if (self.twoFAInputIsEmpty || self.verifying) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.twoFAVerifyType === 'passcode' && !this.passcode) {
|
if (this.twoFAVerifyType === 'passcode' && !this.passcode) {
|
||||||
self.$alert('Passcode cannot be empty');
|
self.$alert('Passcode cannot be empty');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user