mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Merge pull request #5770 from cobbspur/bugs
Prevent gh-spin-button from infinite spin
This commit is contained in:
commit
51102aabaf
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 () {
|
this.set('showSpinnerTimeout', Ember.run.later(this, function () {
|
||||||
if (!this.get('submitting')) {
|
if (!this.get('submitting')) {
|
||||||
this.set('showSpinner', false);
|
this.set('showSpinner', false);
|
||||||
this.set('showSpinnerTimeout', null);
|
|
||||||
}
|
}
|
||||||
|
this.set('showSpinnerTimeout', null);
|
||||||
}, 1000));
|
}, 1000));
|
||||||
} else if (!submitting && timeout === null) {
|
} else if (!submitting && timeout === null) {
|
||||||
this.set('showSpinner', false);
|
this.set('showSpinner', false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue