As a User, on any specific Dino's Profile, I can click a button that displays a confirmation window asking me to type the Dino's name and confirm its extinction.
AC
WHEN a User navigates to an individual Dino's profile
THEN they can click a button that says ExtinguishAND it asks if you would like to Extinguish the Dino
AND requires them to type the Dino's name
AND then click the Extinguish button
AND then be redirected to the main page like it never happened
Dev Notes
Add a isDeleted boolean to the dino object
Add a Bootstrap Danger button to the Print Dinos card (see issue #5):
User Story
As a User, on any specific Dino's Profile, I can click a button that displays a confirmation window asking me to type the Dino's name and confirm its extinction.
AC
WHEN a User navigates to an individual Dino's profile THEN they can click a button that says Extinguish AND it asks if you would like to Extinguish the Dino AND requires them to type the Dino's name AND then click the Extinguish button AND then be redirected to the main page like it never happened
Dev Notes
isDeleted
boolean to the dino objectDanger
button to the Print Dinos card (see issue #5):Event Listener
for the Extinguish button that will have an id of#removeButton
.removeDino()
that runs upon clicking theDanger
buttonhtml
pageDINO NAME
'S LIFE and an ExtinguishDanger
buttonDanger
buttonisDeleted
totrue
printToDom
for the cards page, making sure that we're only printing non-deleted dinos