FIX: Upgrade button was quirky
This commit is contained in:
parent
5cfcb104ab
commit
678a42121e
File diff suppressed because one or more lines are too long
|
@ -57,7 +57,7 @@ var Repo = Ember.Object.extend({
|
|||
|
||||
resetUpgrade: function() {
|
||||
var self = this;
|
||||
return this.repoAjax(Discourse.getURL('/admin/docker/upgrade'), { type: 'DELETE' }).then(function() {
|
||||
return this.repoAjax(Discourse.getURL('/admin/docker/upgrade'), { dataType: 'text', type: 'DELETE' }).then(function() {
|
||||
self.set('upgrading', false);
|
||||
});
|
||||
},
|
||||
|
@ -66,7 +66,7 @@ var Repo = Ember.Object.extend({
|
|||
var self = this;
|
||||
this.set('upgrading', true);
|
||||
|
||||
return this.repoAjax(Discourse.getURL('/admin/docker/upgrade'), { type: 'POST' }).catch(function() {
|
||||
return this.repoAjax(Discourse.getURL('/admin/docker/upgrade'), { dataType: 'text', type: 'POST' }).catch(function(e) {
|
||||
self.set('upgrading', false);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue