nss-evening-cohort-11 / nutshell-ewoks-droids

Star Destroyer
0 stars 2 forks source link

Personnel - Edit #32

Closed olamide87 closed 4 years ago

olamide87 commented 4 years ago

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)