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> </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) {