Skip to content

Commit

Permalink
Fix spinner not being hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
Volmarg committed Jun 7, 2020
1 parent 9480e0c commit c31b689
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/assets/app.js

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions src/assets/scripts/ui/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,16 @@ export default (function () {
}

},
/**
* Timeout is needed as in some cases when the project is being run in better environment the hide is kinda being executed to fast
*/
hideLoader: () => {
let loader = $(ui.widgets.elements.loader);
setTimeout(function(){
let loader = $(ui.widgets.elements.loader);

loader.removeAttr('style');
loader.addClass('fadeOut');
loader.removeAttr('style');
loader.addClass('fadeOut');
}, 200)
}
}

Expand Down

0 comments on commit c31b689

Please sign in to comment.