-
Notifications
You must be signed in to change notification settings - Fork 4
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
🐛 disable controls using loadingOverlay #53
Conversation
Staging application has been deployed and is available at: https://dash5-services.plotly.host/ml-exchange-staging |
When the app initially loads or when the project is changed, app has to ask the server for the project data to be able to populate sliders with the correct number of slices. mlex_highres_segmentation/callbacks/image_viewer.py Lines 146 to 147 in 0162667
On my PC it can take from 0.01s - 5s (especially when you load in another browser/incognito so it doesn't cache anything). While this callback is waiting to finish, the controls are able to be clicked on since the overlays are controlled by render_image()
You can change
and add them to
However, every time |
Good catch @danton267! Thought about this for a bit and I'm not too concerned about the timing of the What do you think? |
I would personally add
to The split-second "flash" after Either way, looks good to me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good! Can be merged
Proposing a slightly simpler approach to #51 -- addressing #41. I like this approach because it means that we don't have to update any callbacks when new controls are added into the existing sections on the sidebar. Since the loading spinner itself isn't visible it looks basically the same as if the controls are disabled.