mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
15 lines
478 B
JavaScript
15 lines
478 B
JavaScript
import Controller from 'ember-controller';
|
|
import injectService from 'ember-service/inject';
|
|
import SettingsSaveMixin from 'ghost-admin/mixins/settings-save';
|
|
|
|
export default Controller.extend(SettingsSaveMixin, {
|
|
notifications: injectService(),
|
|
|
|
save() {
|
|
let notifications = this.get('notifications');
|
|
|
|
return this.get('model').save().catch((error) => {
|
|
notifications.showAPIError(error, {key: 'code-injection.save'});
|
|
});
|
|
}
|
|
});
|