DSD-DBS / capella-collab-manager

A web app for collaboration on Capella (MBSE) projects
https://dsd-dbs.github.io/capella-collab-manager/
Apache License 2.0
23 stars 4 forks source link

Delete files in file browser #1287

Open MoritzWeber0 opened 10 months ago

MoritzWeber0 commented 10 months ago

As alternative to complex file deletion workflows via session containers, it shall be possible to delete single files and empty directories from the file browser. To prevent unintended deletions, it shall not be possible to delete directories, which contain files.

jamilraichouni commented 5 months ago

To prevent unintended deletions, it shall not be possible to delete directories, which contain files.

For cases of non-empty directories I'd clearly prefer an extra question dialog like "Do you really want to delete the directory '/path/to/dir' which contains x file(s)?" instead of being forced to delete file by file.

Image a user exported all representations into a directory and would be forced to delete hundreds of diagrams.

MoritzWeber0 commented 5 months ago

To prevent unintended deletions, it shall not be possible to delete directories, which contain files.

For cases of non-empty directories I'd clearly prefer an extra question dialog like "Do you really want to delete the directory '/path/to/dir' which contains x file(s)?" instead of being forced to delete file by file.

Image a user exported all representations into a directory and would be forced to delete hundreds of diagrams.

Yes, that makes sense. A dialog can also prevent unintended deletions and is less annoying than deletion of a ton of files manually.