Ghost/ghost/admin/app/controllers/settings/code-injection.js

15 lines
406 B
JavaScript
Raw Normal View History

2015-02-13 07:22:32 +03:00
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);
});
}
});