nss-evening-cohort-10 / nutshell-star-destroyer

0 stars 1 forks source link

Edit Mission Personnel #85

Closed rtate2 closed 4 years ago

rtate2 commented 4 years ago

User Story

As a user, I should be able to edit Mission Personnel.

Acceptance Criteria

GIVEN the user is logged in and visits the Mission page WHEN the appropriate mission is selected and user clicks the edit button on the card THEN a modal will pop up with pre-populated fields for the individual personnel

WHEN the save button is clicked THEN the updated object is sent to firebase AND the DOM is updated

Dev Notes

• Create an (updateMissionPersonnel) axios.put call in the helpers/data/missionPersonnelData.js file that allows the user to edit mission personnel by missionId to firebase and the DOM

• Create an event listener that targets the id of the "Save" button from the modal, and calls updateMissionPersonnelFromModal on click of the "Save" button

rtate2 commented 4 years ago

Example Edit button mockup Screen Shot 2019-11-26 at 11 35 25 AM

gregkorte commented 4 years ago

In dev notes: Remember, you are getting these personnel by missionId. Also, I didn't see anywhere where you are deleting the records if you de-select them on edit.