Ghost/ghost/admin/app/controllers/settings/code-injection.js
Austin Burdine 2833675238 add spin-button component & implement it
closes #3928
- adds spin-button component & styles
- implements spin-button in places where buttons trigger async tasks
2015-08-10 09:43:50 -06:00

15 lines
406 B
JavaScript

import Ember from 'ember';
import SettingsSaveMixin from 'ghost/mixins/settings-save';
export default Ember.Controller.extend(SettingsSaveMixin, {
notifications: Ember.inject.service(),
save: function () {
var notifications = this.get('notifications');
return this.get('model').save().catch(function (error) {
notifications.showAPIError(error);
});
}
});