Implement the possibility to delete events
Closes #649
What does this MR do?
Adds a link to the options menu for an event (see screenshot). The link is visible for the creator of the event, orga, and the ambassadors of the region of the event. After a confirmation message the event and all invitations to it are deleted.
How confident are you it won't break things if deployed?
It seems to work. Is there is anything more to delete than the invitations?
How to test
Steps a reviewer can take to verify that this MR does what it says it does e.g.
- Checkout branch locally
- Login as foodsaver
- Create a new event in your district (Termine -> Jetzt neuen Termin eintragen)
- After creating it, delete it again via the menu
Screenshots (if applicable)
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
joined #foodsharing-beta channel at https://slackin.yunity.org -
added an entry to CHANGELOG.md (description, merge request link, username(s)) -
Once your MR has been merged, you are responsible to update the #foodsharing-beta Slack channel about what has been changed here. They will test your work in different browsers, roles or other settings
Edited by Alex