Aim-Educational / livestock-website

0 stars 0 forks source link

Implement the delete button for Critters. #49

Closed BradleyChatha closed 5 years ago

BradleyChatha commented 5 years ago

If the critter is not referenced by anything (outside of life event mappings) then it should be completely deleted, as it was likely added as an error.

If the critter has been referenced by something (is set as a parent, is referenced by a life event that includes more than the critter the event belongs to, etc.) then the critter shouldn't be able to be deleted, but instead we need to find another way to remove them from the user's view.