0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Fix spinner on settings page

refs #5652

- stops spinner from spinning forever on settings screen when saving
This commit is contained in:
cobbspur 2015-08-11 15:26:13 +01:00
parent 0f9f0dd69f
commit e0b684e401

View file

@ -124,7 +124,7 @@ export default Ember.Controller.extend(ValidationEngine, {
window.history.replaceState({path: newPath}, '', newPath); window.history.replaceState({path: newPath}, '', newPath);
} }
this.toggleProperty('submitting'); self.toggleProperty('submitting');
return model; return model;
}).catch(function (errors) { }).catch(function (errors) {
@ -132,7 +132,7 @@ export default Ember.Controller.extend(ValidationEngine, {
self.get('notifications').showErrors(errors); self.get('notifications').showErrors(errors);
} }
this.toggleProperty('submitting'); self.toggleProperty('submitting');
}); });
this.set('lastPromise', promise); this.set('lastPromise', promise);