As a user, I should be able to add Weapons to the Mission.
AC
GIVEN the user is logged in and visits the dashboard page
WHEN the user clicks the "Add" button on the big mission weapons card
THEN there will be a modal to create new mission weapon
WHEN the "save" button is clicked in modal
THEN the new mission weapon will be found in mission weapons collection in firebase
AND the dom will be updated from firebase
Dev Notes
Create an axios call in the missionWeaponsData.js (addNewMissionWeapon) file that allows user to post the object to firebase (post)
addNewMissionWeapon will take (newMissionWeapon) as a parameter
Create the "Add" button below the card that prepopulates a modal in index.html for the user to input information to create a new mission weapon within the specific category
Create addMissionWeapon function within components/missionWeapons/missionWeapons.js that reads the values from the input fields to create a new mission weapon object, and then pass the object to addNewMissionWeapon
User Story
As a user, I should be able to add Weapons to the Mission.
AC
GIVEN the user is logged in and visits the dashboard page WHEN the user clicks the "Add" button on the big mission weapons card THEN there will be a modal to create new mission weapon
WHEN the "save" button is clicked in modal THEN the new mission weapon will be found in mission weapons collection in firebase AND the dom will be updated from firebase
Dev Notes
Create an axios call in the missionWeaponsData.js (addNewMissionWeapon) file that allows user to post the object to firebase (post)
addNewMissionWeapon will take (newMissionWeapon) as a parameter
Create the "Add" button below the card that prepopulates a modal in index.html for the user to input information to create a new mission weapon within the specific category
Create addMissionWeapon function within components/missionWeapons/missionWeapons.js that reads the values from the input fields to create a new mission weapon object, and then pass the object to addNewMissionWeapon
update dom with createMissionWeaponCard function