diff --git a/posawesome/public/js/posapp/components/pos/OpeningDialog.vue b/posawesome/public/js/posapp/components/pos/OpeningDialog.vue index cfba3a08..d8b04490 100644 --- a/posawesome/public/js/posapp/components/pos/OpeningDialog.vue +++ b/posawesome/public/js/posapp/components/pos/OpeningDialog.vue @@ -63,7 +63,13 @@ Cancel - Submit + Submit @@ -76,6 +82,7 @@ export default { props: ['dialog'], data: () => ({ dialog_data: {}, + is_loading: false, companys: [], company: '', pos_profiles_data: [], @@ -155,6 +162,7 @@ export default { if (!this.payments_methods.length || !this.company || !this.pos_profile) { return; } + this.is_loading = true; const vm = this; return frappe .call('posawesome.posawesome.api.posapp.create_opening_voucher', { @@ -167,6 +175,7 @@ export default { evntBus.$emit('register_pos_data', r.message); evntBus.$emit('set_company', r.message.company); vm.close_opening_dialog(); + is_loading = false; } }); },