Please take a moment to review this ❤️
Goal: US10 (and US11) TL; DR: Folders and Entries must have a delete button, the button must have the same behaviour on both, clicking it will show a delete request window, clicking cancel or outside the window will close it, clicking delete button will delete the given folder or entry. Deleting a folder doesn't delete the entries assigned to it.
+ Add DeleteRequest component
# Handles the request of DELETE method for deleting a folder/ entry.
+ Add DeleteButton component
# Handles the toggling on of the Delete Request component.
! Update entry.js api page
# Handles the DELETE method for deleting an entry by id.
! Update folder.js api page
# Handles the DELETE method for deleting a folder by id.
! Update entries.js api page
# Handles the PUT method for removing the entrySelectedFolder
# property from all entries with the specific folder id of the folder
# that is currently being deleted.
! Update /folder/[folderId].js page
# Uses the DeleteButton component.
! Update [entryId].js page
# Uses the DeleteButton component.
Please take a moment to review this ❤️ Goal: US10 (and US11) TL; DR: Folders and Entries must have a delete button, the button must have the same behaviour on both, clicking it will show a delete request window, clicking cancel or outside the window will close it, clicking delete button will delete the given folder or entry. Deleting a folder doesn't delete the entries assigned to it.
Deployment