0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/client/app/controllers/settings/code-injection.js

17 lines
444 B
JavaScript
Raw Normal View History

2015-02-12 21:22:32 -07:00
import Ember from 'ember';
import SettingsSaveMixin from 'ghost/mixins/settings-save';
const {Controller, inject} = Ember;
export default Controller.extend(SettingsSaveMixin, {
notifications: inject.service(),
save() {
let notifications = this.get('notifications');
return this.get('model').save().catch((error) => {
notifications.showAPIError(error, {key: 'code-injection.save'});
});
}
});