Deleting and Restoring Folders #161
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This update enables an instructor to delete and restore folders.
On the dashboard, one can click the edit icon to view the following form.

Click delete to move to trash.


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



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.
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.

