Closed MarkyAaronYoung closed 4 years ago
this just removes the staff (and other things) from the event, right? Like it doesn't delete the Staff item totally?
you'll also want axios requests to delete anything from any join tables you may have created
User Story
As a user, I should be able to delete only the events I've created as well as delete souvenirs, shows, staff, and food items I've added to that event
AC
When a user is authenticated And Then they click on an event page Then the user can delete an entire event When they click on a delete button on the specific event page
Dev Notes
src/javascripts/components/deleteEvent/deleteEvent.js
src/javascripts/components/deleteEventItems/deleteEventItems.js
*$('body'). on('click', '.delete-event', deleteEvent)
src/javascripts/helpers/data/eventData