Open christopherjohnson1 opened 4 years ago
As a user, I should be able to add planetary systems to a mission I have created
WHEN you click on a single mission THEN you see a button to add planetary system AND the personnel information will be displayed
add-planetary-system
<i class="fas fa-user-plus"></i>
missionEvents
missions.js
missionId
e.target.closest('.card').id
data-id
addPlanetarySystemToMission
add-new-planetary-system-to-mission
getMissionPlanetarySystemByMissionId
missionPlanetarySystemData.js
axios.post()
USER STORY
As a user, I should be able to add planetary systems to a mission I have created
AC
WHEN you click on a single mission THEN you see a button to add planetary system AND the personnel information will be displayed
DEV NOTES
add-planetary-system
<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 modaladdPlanetarySystemToMission
component/file (where modal lives)add-new-planetary-system-to-mission
missionEvents
function inmissions.js
)addPlanetarySystemToMission
getMissionPlanetarySystemByMissionId
inmissionPlanetarySystemData.js
addPlanetarySystemToMission
inmissionPlanetarySystemData.js
axios.post()
method