disabling multiple click on element till respose get back

This commit is contained in:
sanjeev 2022-07-25 15:01:29 +05:30
parent d28d1a693b
commit 1398fee916
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,7 @@
removeCoupon: function () {
let self = this;
$('.cross-icon').css('pointer-events','none');
axios.delete('{{ route('shop.checkout.coupon.remove.coupon') }}')
.then(function(response) {
@ -103,6 +104,8 @@
self.applied_coupon = '';
$('.cross-icon').css('pointer-events','auto');
window.flashMessages = [{'type': 'alert-success', 'message': response.data.message}];
self.$root.addFlashMessages();