As a user, I should be able to edit a enemy to a mission exercise.
AC
When a user clicks on the Edit button
Then a modal will pull up with pre-populated enemy information
AND the user will be able to change the name, and/or img url, and change the systemId from a dropdown list of what system the enemy is located for the mission
Then the user can click save and the enemy will be added to firebase
And and the updated enemy card will appear on the page
Dev Notes
Create ra-editEnemyTarget branch
Make updateEnemyTarget function in missionData.js file axios.put()
Create editTarget function in misssion.js file
Create Event listener on the Edit button that will present the modal popup in the add
missions div in hmtl
Use a bootstrap dropdown component for system selection
Pull in the systemId data list to loop over and have in the dropdown for selection
Create Event listener on the Save button that will update the enemy target info for the mission in
firebase the modal will also remove from page
Call the missionBuilder function to reflect the changes
User Story
As a user, I should be able to edit a enemy to a mission exercise.
AC
When a user clicks on the
Edit
button Then a modal will pull up with pre-populated enemy information AND the user will be able to change the name, and/or img url, and change the systemId from a dropdown list of what system the enemy is located for the missionThen the user can click save and the enemy will be added to firebase And and the updated enemy card will appear on the page
Dev Notes
ra-editEnemyTarget
branchEdit
button that will present the modal popup in the add missions div in hmtl