diff --git a/frontend/js/app/nginx/certificates/delete.js b/frontend/js/app/nginx/certificates/delete.js index 426e250..89a2e5e 100644 --- a/frontend/js/app/nginx/certificates/delete.js +++ b/frontend/js/app/nginx/certificates/delete.js @@ -16,6 +16,8 @@ module.exports = Mn.View.extend({ events: { 'click @ui.save': function (e) { e.preventDefault(); + this.ui.save.addClass('btn-loading'); + this.ui.buttons.prop('disabled', true).addClass('btn-disabled'); App.Api.Nginx.Certificates.delete(this.model.get('id')) .then(() => { @@ -25,6 +27,7 @@ module.exports = Mn.View.extend({ .catch(err => { alert(err.message); this.ui.buttons.prop('disabled', false).removeClass('btn-disabled'); + this.ui.save.removeClass('btn-loading'); }); } }