FIX: Upgrade button was quirky

This commit is contained in:
Robin Ward 2017-01-12 15:07:57 -05:00
parent 5cfcb104ab
commit 678a42121e
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -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);
});
}