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

18 lines
441 B
JavaScript
Raw Normal View History

2015-02-12 21:22:32 -07:00
import Ember from 'ember';
export default Ember.Controller.extend({
notifications: Ember.inject.service(),
actions: {
save: function () {
var notifications = this.get('notifications');
return this.get('model').save().then(function (model) {
return model;
}).catch(function (error) {
notifications.showAPIError(error);
});
}
}
});