User can now delete snippets they own. Also, users can delete snippets from organizations they are members of.
Note: User cannot delete snippets if they are not logged in or do not own the snippet.
Motivation and Context
Fixes #413 branches off of #497, so that must be merged first.
Checklist:
[x] My code follows the code style of this project.
Description
User can now delete snippets they own. Also, users can delete snippets from organizations they are members of. Note: User cannot delete snippets if they are not logged in or do not own the snippet.
Motivation and Context
Fixes #413 branches off of #497, so that must be merged first.
Checklist:
Browsers
Screenshots (if appropriate):
Enabled when logged in
Shows confirmation Modal
Shows snackbar when deleting
Shows snackbar when deleted
Delete is enabled for organization members
Not enabled on unsaved snippets