haystack / nb

12 stars 10 forks source link

Deleting and Restoring Folders #161

Closed 20rohanc closed 3 years ago

20rohanc commented 3 years ago

This update enables an instructor to delete and restore folders.

On the dashboard, one can click the edit icon to view the following form. image

Click delete to move to trash. image image

Clicking the restore icon results in a deleted folder being restored from the trash. image image image

Additionally, the trash system has been slightly modified to make deletion and restoral more intuitive. To demonstrate, I have re-deleted the templates folder, and we can access this folder as expected despite it being in the trash. image image

As you can see, this is still a local trash system; I have attached an image of the directory Math Textbooks, which has its own trash. image image

20rohanc commented 3 years ago

No worries: the PR is for the up-to-date version and can be used (I believe I commented earlier that this may not have fixed a minor clicking bug since I forgot to save and commit locally).