mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
2833675238
closes #3928 - adds spin-button component & styles - implements spin-button in places where buttons trigger async tasks
15 lines
406 B
JavaScript
15 lines
406 B
JavaScript
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);
|
|
});
|
|
}
|
|
});
|