diff --git a/src/app/views/provisioning/subscriptions.controller.coffee b/src/app/views/provisioning/subscriptions.controller.coffee index c8f73734..a3be29d3 100644 --- a/src/app/views/provisioning/subscriptions.controller.coffee +++ b/src/app/views/provisioning/subscriptions.controller.coffee @@ -5,6 +5,7 @@ angular.module 'mnoEnterpriseAngular' vm = this vm.isLoading = true vm.isCartSubmitting = false + vm.isCartDeleting = false vm.cartSubscriptions = $stateParams.subType == 'cart' vm.skipPriceSelection = ProvisioningHelper.skipPriceSelection @@ -20,15 +21,18 @@ angular.module 'mnoEnterpriseAngular' MnoeProvisioning.getSubscriptions(params) vm.deleteCart = -> + return if vm.isCartSubmitting || vm.isCartDeleting + vm.isCartDeleting = true MnoeProvisioning.deleteCartSubscriptions().then( (response) -> MnoeProvisioning.emptyCartSubscriptions() toastr.info('mno_enterprise.templates.dashboard.provisioning.subscriptions.cart.delete_cart.toastr') + vm.isCartDeleting = false $state.go("home.marketplace") ) vm.submitCart = -> - return if vm.isCartSubmitting + return if vm.isCartSubmitting || vm.isCartDeleting vm.isCartSubmitting = true MnoeProvisioning.submitCartSubscriptions().then( (response) -> diff --git a/src/app/views/provisioning/subscriptions.html b/src/app/views/provisioning/subscriptions.html index fd60f5e7..b5f3769c 100644 --- a/src/app/views/provisioning/subscriptions.html +++ b/src/app/views/provisioning/subscriptions.html @@ -7,10 +7,11 @@

- -