Open omiras opened 3 years ago
[X] Added a very basic form validation such that the user cannot send an empty form.
[X] A paragraph is shown above the submit button when user try to submit the form and data is not valid.
[X] A new animal (document) is added to firebase with all data but for the images. Also, a user ID data field is added to such document.
[X] The images are also uploaded to firebase, to the same document, under a images collection.
[ ] Logged user is hard-coded. Needs to be fixed after authentication page is ready.
[ ] We've thought it may be a good idea to update the "animals" state property whenever a new animal is added to the database by calling a GetData (?). However, this is still to be decided.
[ ] Also, redirecting after form is submitted is not set up yet. User should be redirected to "my animals" page.
" Also, redirecting after form is submitted is not set up yet. User should be redirected to "my animals" page.
@diegolajus May have already decided which route has the "my profile" view. Please, teach Diego and Maria how to remove the tabs from the top of the page.
We've thought it may be a good idea to update the "animals" state property whenever a new animal is added to the database by calling a GetData (?). However, this is still to be decided.
Ok for now, we'll try to change it in the later to update the state's app
We're working on recovering data shown in animal slider from our database.
Make the component AnimalForm.vue work inserting a new animal in firestore database