0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Prevent gh-spin-button from infinite spin

closes #5768

- Always set showSpinnerTimeout back to null after 1 second.
This commit is contained in:
cobbspur 2015-08-31 13:27:23 +01:00
parent 720c421e8b
commit 3ec74a4f66

View file

@ -31,8 +31,8 @@ export default Ember.Component.extend({
this.set('showSpinnerTimeout', Ember.run.later(this, function () {
if (!this.get('submitting')) {
this.set('showSpinner', false);
this.set('showSpinnerTimeout', null);
}
this.set('showSpinnerTimeout', null);
}, 1000));
} else if (!submitting && timeout === null) {
this.set('showSpinner', false);