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