mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
748895ce77
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);
|
|
});
|
|
}
|
|
}
|
|
});
|