Add OTP error handling to Quick form

This commit is contained in:
Bubka 2020-02-05 17:51:45 +01:00
parent a094ffb4a8
commit 2bc505558b

View File

@ -69,6 +69,7 @@
</label>
</div>
</div>
<field-error :form="form" field="qrcode" />
</form>
</div>
<div class="columns is-mobile">
@ -110,7 +111,7 @@
</p>
<!-- Cancel QuickFormButton -->
<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') }}
</a>
</p>
@ -277,6 +278,10 @@
this.$parent.showToolbar = state
},
cancelQuickForm() {
this.form.clear()
this.showQuickForm = false
}
},
beforeRouteEnter (to, from, next) {