kai-franke/capstone-project

Delete functionality

Closed this issue · 0 comments

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

capstone-userstory-13

Acceptance Criteria

  • in user page, every tutorial list item displays a delete icon
  • a modal opens when the delete icon is clicked
  • the modal displays the question Do you really want to delete this tutorial?, a no, abort and a yes, 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 of Button component to insert the two buttons
  • add state for visibility of modal
  • add functionality to yes, delete button