From 487f40a3e5a57ad790f2d672ea848dd44ab3b4fe Mon Sep 17 00:00:00 2001 From: Deja Vue <57795630+dejavuejs@users.noreply.github.com> Date: Tue, 12 Jan 2021 19:34:52 +0530 Subject: [PATCH] Update onepage.blade.php --- .../views/shop/checkout/onepage.blade.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage.blade.php index 29830552e..c5fd4c3df 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage.blade.php @@ -201,7 +201,7 @@ return false; }, - validateForm: function (scope) { + validateForm: async function (scope) { var isManualValidationFail = false; if (scope == 'address-form') { @@ -209,7 +209,7 @@ } if (! isManualValidationFail) { - this.$validator.validateAll(scope) + await this.$validator.validateAll(scope) .then(result => { if (result) { switch (scope) { @@ -341,7 +341,7 @@ .catch(function (error) {}) }, - saveAddress: function () { + saveAddress: async function () { this.disable_button = true; if (this.allAddress.length > 0) { @@ -414,7 +414,7 @@ }) }, - saveShipping: function () { + saveShipping: async function () { this.disable_button = true; this.$http.post("{{ route('shop.checkout.save-shipping') }}", {'shipping_method': this.selected_shipping_method}) @@ -444,7 +444,7 @@ }) }, - savePayment: function () { + savePayment: async function () { this.disable_button = true; if (this.isCheckPayment) { @@ -474,7 +474,7 @@ } }, - placeOrder: function () { + placeOrder: async function () { if (this.isPlaceOrderEnabled) { this.disable_button = false; this.isPlaceOrderEnabled = false; @@ -735,4 +735,4 @@ })() -@endpush \ No newline at end of file +@endpush