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