Open christopherjohnson1 opened 4 years ago
As a user, I should be able to add personnel to a mission I have created
WHEN you click on a single mission THEN you see a button to add personnel AND the personnel information will be displayed
add-personnel
<i class="fas fa-user-plus"></i>
missionEvents
missions.js
missionId
e.target.closest('.card').id
data-id
addPersonnelToMission
add-new-personnel-to-mission
getPersonnelMissionByMissionId
personnelMissionData.js
addPersonnelMission
axios.post()
USER STORY
As a user, I should be able to add personnel to a mission I have created
AC
WHEN you click on a single mission THEN you see a button to add personnel AND the personnel information will be displayed
DEV NOTES
add-personnel
<i class="fas fa-user-plus"></i>
missionEvents
function inmissions.js
)missionId
that has a value ofe.target.closest('.card').id
missionId
intodata-id
's value on the modaladdPersonnelToMission
component/file (where modal lives)add-new-personnel-to-mission
missionEvents
function inmissions.js
)addPersonnelToMission
getPersonnelMissionByMissionId
inpersonnelMissionData.js
addPersonnelMission
inpersonnelMissionData.js
axios.post()
method