We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f401c commit 6be0343Copy full SHA for 6be0343
frontend/js/app/nginx/certificates/delete.js
@@ -16,6 +16,8 @@ module.exports = Mn.View.extend({
16
events: {
17
'click @ui.save': function (e) {
18
e.preventDefault();
19
+ this.ui.save.addClass('btn-loading');
20
+ this.ui.buttons.prop('disabled', true).addClass('btn-disabled');
21
22
App.Api.Nginx.Certificates.delete(this.model.get('id'))
23
.then(() => {
@@ -25,6 +27,7 @@ module.exports = Mn.View.extend({
25
27
.catch(err => {
26
28
alert(err.message);
29
this.ui.buttons.prop('disabled', false).removeClass('btn-disabled');
30
+ this.ui.save.removeClass('btn-loading');
31
});
32
}
33
0 commit comments