When I am on the personnel page, I should be able to delete personnel
AC
WHEN the personnel page
THEN I should see delete buttons on the personnel
AND clicking them should remove the personnel from firebase
DEV NOTES
add the following to personnel component
modify 'printPersonnel'to have a delete button on each card with a class of delete-personnel
Add personnelId as the html id on the div with a class of card
add the following theWarRoom component
*Event listener on delete-plane that calls a function deletePlaneEvent
'$(body).on('click', '.delete-personnel', deletePersonnelEvent)'
'deletePersonnelEvent' does a 'preventDefault()' and then calls 'personnelData.deletePersonnel' and passes the personnelId (target id of closest card)
'planeData.deletePlane' does an 'axios.delete' to 'planes/${planeId}.json'
on failure of axios call - 'console.error('could not delete)'
USER STORY
When I am on the personnel page, I should be able to delete personnel
AC
WHEN the personnel page THEN I should see delete buttons on the personnel AND clicking them should remove the personnel from firebase
DEV NOTES
add the following to personnel component
modify 'printPersonnel'to have a delete button on each card with a class of delete-personnel Add personnelId as the html id on the div with a class of card
add the following theWarRoom component
*Event listener on delete-plane that calls a function deletePlaneEvent '$(body).on('click', '.delete-personnel', deletePersonnelEvent)' 'deletePersonnelEvent' does a 'preventDefault()' and then calls 'personnelData.deletePersonnel' and passes the personnelId (target id of closest card)