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