1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 10:50:24 +00:00

feat(metadata-table): delete/rename folder/file via contextmenu (#6848)

This commit is contained in:
Jerry Ren
2024-09-29 17:52:25 +08:00
committed by GitHub
parent d0a634a26f
commit ac9ea564b8
32 changed files with 738 additions and 346 deletions

View File

@@ -68,6 +68,9 @@ class TreeHelper {
renameNodeByPath(tree, nodePath, newName) {
let treeCopy = tree.clone();
let node = treeCopy.getNodeByPath(nodePath);
if (!node) {
return treeCopy;
}
treeCopy.renameNode(node, newName);
return treeCopy;
}