glowabio / geofresh

https://geofresh.org
GNU General Public License v3.0
0 stars 3 forks source link

activate/de-activate "Start query" buttons depening on input data and snapping #34

Closed vanbremer closed 7 months ago

vanbremer commented 10 months ago

Users should not be able to start the query if data upload and snapping not finished

vanbremer commented 9 months ago

please check if the same applies to other query buttons

merretbuurman commented 8 months ago

I added some code (branch https://github.com/glowabio/geofresh/tree/dev_notifications_wrong_sequence) that checks (1) whether points are uploaded+snapped and (2) whether a box is checked. If not, it does not continue, and it shows a notification to user. Making the button grey in addition would be good, I think, but I didn't find out how to do that yet :)

I'll check more buttons and make a PR then.

merretbuurman commented 8 months ago

Ok, closing this was unintended! Reopening. Sorry!

ytorres-cambas commented 7 months ago

Here, there is an example to disable a button after clicking https://stackoverflow.com/questions/40621393/disabling-buttons-in-shiny I am testing this solution with the snapping button , but not working yet

ytorres-cambas commented 7 months ago

Now the "snap" button is active only after clicking the "load test data" button and become inactive again when snapping starts.