alercebroker / ztf_explorer

🌚 🔭 💻 ZTF Explorer for the ALeRCE broker
https://alerce.online/
6 stars 0 forks source link

Disable the search button for invalid queries #250

Closed amoya87 closed 3 years ago

amoya87 commented 4 years ago

Disable the search button for invalid queries: Conesearch: incomplete params RA, DEC, Radius Future discovery dates Incomplete params probabily_class, probabily_class_name, probability

cvalenzu commented 4 years ago

The classifier, class and probability works without the full parameters, i.e. without class and probability it shows the classification done by the classifier for each object.

For conesearch we need to validate just ra,dec

Maybe not disabling the button just show an error and don't send the query to the api

amoya87 commented 4 years ago

I was thinking about probability without classifier, and class !!!

cvalenzu commented 4 years ago

Some resources https://github.com/logaretm/vee-validate https://vuetifyjs.com/en/components/forms/ https://github.com/vuelidate/vuelidate