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:
parent
720c421e8b
commit
3ec74a4f66
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue