Ghost/ghost/admin/app/mixins/settings-save.js
Austin Burdine 2833675238 add spin-button component & implement it
closes #3928
- adds spin-button component & styles
- implements spin-button in places where buttons trigger async tasks
2015-08-10 09:43:50 -06:00

18 lines
330 B
JavaScript

import Ember from 'ember';
export default Ember.Mixin.create({
submitting: false,
actions: {
save: function () {
var self = this;
this.set('submitting', true);
this.save().then(function () {
self.set('submitting', false);
});
}
}
});