Delete functionality
Closed this issue · 0 comments
kai-franke commented
Value Proposition
As a tutor, I would like to have the ability to delete tutorials I have created to remove outdated tutorials from distribution.
Description
Acceptance Criteria
- in
user
page, every tutorial list item displays adelete
icon - a modal opens when the
delete
icon is clicked - the modal displays the question
Do you really want to delete this tutorial?
, ano, abort
and ayes, delete
button - the modal closes when one of the buttons or the background is clicked
- additionally, the tutorial will be deleted when the
yes, delete
button was clicked
Tasks
- create new branch
- add
delete
icon to tutorial list item - create functionality to remove a specific document from database collection (accepts tutorial ID)
- create
modal
component and make use ofButton
component to insert the two buttons - add state for visibility of modal
- add functionality to
yes, delete
button