Singulars2021 / tender

Spreading the love
2 stars 0 forks source link

Edit my animals #44

Open omiras opened 3 years ago

omiras commented 3 years ago

We need to create a view according to the wireframe to edit our animals

  1. Modify the component AdminYourAnimals.vue
  2. The component must modified in order to show an icon to "edit" the animal /editanimal/dfgfdgfd4543543 /editanimal/fdfdskfsdr3433
  3. Once touched, the app will navigate the user to the "addNewAnimal" view in edit mode
  4. Create a getter to retrieve only those animals that are mine
  5. Please notice that in Vuex store: loggedUser.id should store the id of the logged there. Therefore we should retrieve only the animals which ownerId is that id.
  6. Create a new dynamic route path: /editanimal/:id
omiras commented 3 years ago
  1. Signup new user
  2. add new animal and check it is uploaded correctly

From now, you can use this user to do your tests.

You can implement now the getMyAnimals

omiras commented 3 years ago

Remember how to change current URL with VUE: https://next.router.vuejs.org/guide/essentials/navigation.html#navigate-to-a-different-location