mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-23 00:33:18 +01:00
Add OTP error handling to Quick form
This commit is contained in:
parent
a094ffb4a8
commit
2bc505558b
@ -69,6 +69,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<field-error :form="form" field="qrcode" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="columns is-mobile">
|
<div class="columns is-mobile">
|
||||||
@ -110,7 +111,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<!-- Cancel QuickFormButton -->
|
<!-- Cancel QuickFormButton -->
|
||||||
<p class="control" v-if="showQuickForm">
|
<p class="control" v-if="showQuickForm">
|
||||||
<a class="button is-dark is-rounded" @click="showQuickForm = false">
|
<a class="button is-dark is-rounded" @click="cancelQuickForm">
|
||||||
{{ $t('commons.cancel') }}
|
{{ $t('commons.cancel') }}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
@ -277,6 +278,10 @@
|
|||||||
this.$parent.showToolbar = state
|
this.$parent.showToolbar = state
|
||||||
},
|
},
|
||||||
|
|
||||||
|
cancelQuickForm() {
|
||||||
|
this.form.clear()
|
||||||
|
this.showQuickForm = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeRouteEnter (to, from, next) {
|
beforeRouteEnter (to, from, next) {
|
||||||
|
Loading…
Reference in New Issue
Block a user