docs icon indicating copy to clipboard operation
docs copied to clipboard

Trash feature (with restoring)

Open vikaskedia opened this issue 5 years ago • 4 comments

We operate in a tightly regulated industry.

It is important to not be able to permanently any document.

Can I disable delete?

Is there a way to enable trash can feature?

vikaskedia avatar Jun 06 '19 20:06 vikaskedia

There is no trash feature currently. It's something which could be done however, I like this idea.

jendib avatar Jun 06 '19 21:06 jendib

Would it be possible to add a config option called "showDeleteInUI" and if this is set to false it will remove the delete button from the UI?

If this feature was added I will be able to champion this product internally.

Since we are in a highly regulated environment we cannot have the option of deleting documents.

vikaskedia avatar Jun 06 '19 22:06 vikaskedia

I am also interested in a "showDeleteInUI" option or something similar.

My current solution is to add custom css to hide the delete button: button.btn.btn-danger.ng-binding { visibility: collapse; width: 1px; padding: 0px; }

kernrot avatar Sep 09 '19 12:09 kernrot

I started to implement a feature to disable the deletion of documents and attached files. The trash feature be achieved with workflows by tagging documents "trash" i guess.

Still needs some additional work until ready for a pull request. https://github.com/kernrot/docs/tree/disable-document-deletion

kernrot avatar Nov 23 '20 16:11 kernrot