mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
21 lines
626 B
JavaScript
21 lines
626 B
JavaScript
import Ember from 'ember';
|
|
var SettingsCodeInjectionController = Ember.Controller.extend({
|
|
actions: {
|
|
save: function () {
|
|
var self = this;
|
|
|
|
return this.get('model').save().then(function (model) {
|
|
self.notifications.closePassive();
|
|
self.notifications.showSuccess('Settings successfully saved.');
|
|
|
|
return model;
|
|
}).catch(function (errors) {
|
|
self.notifications.closePassive();
|
|
self.notifications.showErrors(errors);
|
|
});
|
|
}
|
|
}
|
|
});
|
|
|
|
export default SettingsCodeInjectionController;
|