Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Fix protected directory #77

Merged
merged 2 commits into from
Jul 3, 2024
Merged

Conversation

SquirrelDeveloper
Copy link
Collaborator

Prevent user to delete a default directory or file;
Must be improved in the future by preventing any changes to the file structure of default repos

manu added 2 commits July 3, 2024 12:15
This commit introduces a new 'deletable' option to the fileType attribute in the PlaybookDropdownMenu component. It also modifies the filtering of items based on the 'deletable' fileType. Additionally, a 'rootNode' attribute is added in TreeComponent and some unnecessary imports are removed.
A condition has been added to prevent deletion of custom nodes or root nodes in DirectoryTreeView component of the Playbooks page. This helps to maintain the integrity of the tree structure and prevents accidental deletion of important nodes.
@SquirrelDeveloper SquirrelDeveloper added the bug Something isn't working label Jul 3, 2024
@SquirrelDeveloper SquirrelDeveloper added this to the v0.1.15 milestone Jul 3, 2024
@SquirrelDeveloper SquirrelDeveloper merged commit 3dcdef5 into master Jul 3, 2024
8 checks passed
@SquirrelDeveloper SquirrelDeveloper deleted the fix-protected-directory branch July 3, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

1 participant