Singulars2021 / tender

Spreading the love
2 stars 0 forks source link

Insert a new animal in firestore #35

Open omiras opened 3 years ago

omiras commented 3 years ago

Make the component AnimalForm.vue work inserting a new animal in firestore database

  1. At this moment, use a "hardcoded" user id from firestore. It would be nice to store this id in Vuex, in the state (loggedUser)
  2. The new animal must be inserted in the firestore database. Remember that there may be new fields such as "userOwnerId"
  3. Also make sure you insert all its photos as a subcollection of the animal
  4. Update the "animals" state property
  5. Discuss with @diegolajus @maria-canals to which URL should the user navigate.
didac3141592 commented 3 years ago
omiras commented 3 years ago

" 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.

omiras commented 3 years ago

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

didac3141592 commented 3 years ago

We're working on recovering data shown in animal slider from our database.