diff --git a/resources/assets/js/views/modules/apps.js b/resources/assets/js/views/modules/apps.js index 8078dad7b..12ff89136 100644 --- a/resources/assets/js/views/modules/apps.js +++ b/resources/assets/js/views/modules/apps.js @@ -82,12 +82,15 @@ const app = new Vue({ html: '' }, + addToCartLoading: false, loadMoreLoading: false, } }, methods: { addToCart(alias, subscription_type) { + this.addToCartLoading = true; + let add_to_cart_promise = Promise.resolve(axios.get(url + '/apps/' + alias + '/' + subscription_type +'/add')); add_to_cart_promise.then(response => { @@ -95,25 +98,15 @@ const app = new Vue({ this.$notify({ message: response.data.message, timeout: 0, - icon: "fas fa-bell", + icon: "shopping_cart_checkout", type: 'success' }); } - if (response.data.error) { - this.installation.status = 'exception'; - this.installation.html = '