Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add app-wide loading mask component #308

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

chrismayer
Copy link
Collaborator

This adds an app-wide loading mask component, which covers the application and shows a loading spinner:

image

Quite useful when performing essential AJAX requests, where the user should not interact with the application.

To toggle the loading mask you could use WguEventBus.$emit('app-loading-mask-toggle'); or in order to explicitly set a visibility for the mask one could use WguEventBus.$emit('app-loading-mask-toggle', newViz); .

This adds an app-wide loading mask component, which covers the
application and shows a loading spinner.
Copy link
Collaborator

@fschmenger fschmenger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works out as expected. Another useful feature.
You could possibly enhance the unit test to $emit the event and check the show attribute.
Approved anyway, if you want to merge.

Since we have a couple of new features by now, could you bump up the minor version?

@chrismayer
Copy link
Collaborator Author

Thanks for your review @fschmenger. I added some tests regarding the 'app-loading-mask-toggle' event (see 10d0875). I am going to merge now.

Since we have a couple of new features by now, could you bump up the minor version?

I also had that in mind and come up with that separately.

@chrismayer chrismayer merged commit c5be1c0 into wegue-oss:master Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants