As a user
I want to open a menu in every collection.
In order to do actions like deleting a collection.
Description
You can open a menu by clicking on a three dots button at every collection in the collection-page. This menu contains for now a delete function.
Acceptance criteria
[ ] When you open the collections-menu and click on the delete button, you get a double confirmation. After confirming twice the collection is deleted.
[ ] The cards that are included in the collection, are deleted too and no more available at Homepage.
Tasks
[ ] create a new component called CollectionMenu, where you return the three dots Menu and write the handleDelete-function with two confirmations.
[ ] in _app.js you write a async-function called deleteCollection
[ ] you pass the function deleteCollection to all dependencies.
[ ] create at pages/api/collections a new file [id].js where you write the function handler with the request.method "DELETE"
[ ] add a deleteMany to add all cards that matches the collection
Value proposition
As a user I want to open a menu in every collection. In order to do actions like deleting a collection.
Description
You can open a menu by clicking on a three dots button at every collection in the collection-page. This menu contains for now a delete function.
Acceptance criteria
Tasks