From 9a17787f760b8d4f23658fa859354fe7ee3be33f Mon Sep 17 00:00:00 2001 From: Chirag Chhatrala <60499540+chiragchhatrala@users.noreply.github.com> Date: Tue, 16 Jul 2024 02:50:56 +0530 Subject: [PATCH] Display error with page validation (#486) --- client/components/open/forms/OpenForm.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/components/open/forms/OpenForm.vue b/client/components/open/forms/OpenForm.vue index 826f780d..e6f9da6a 100644 --- a/client/components/open/forms/OpenForm.vue +++ b/client/components/open/forms/OpenForm.vue @@ -109,8 +109,8 @@ :color="form.color" :theme="theme" class="mt-2 px-8 mx-1" - @click.stop="nextPage" :loading="dataForm.busy" + @click.stop="nextPage" > {{ currentFieldsPageBreak.next_btn_text }} @@ -461,7 +461,11 @@ export default { this.currentFieldGroupIndex += 1 this.dataForm.busy = false window.scrollTo({top: 0, behavior: 'smooth'}) - }).catch(err => { + }).catch(error => { + console.error(error) + if (error && error.data && error.data.message) { + useAlert().error(error.data.message) + } this.dataForm.busy = false }) return false