Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client/tree context menu: relocate the "Duplicate subtree" menu item
Adorian Doran1029c24c0613
diff --git a/apps/client/src/menus/tree_context_menu.ts b/apps/client/src/menus/tree_context_menu.tsindex 1b9383442f..40730a51c3 100644--- a/apps/client/src/menus/tree_context_menu.ts+++ b/apps/client/src/menus/tree_context_menu.ts@@ -129,13 +129,7 @@ export default class TreeContextMenu implements SelectMenuItemEventListener<Treeenabled: isNotRoot && parentNotSearch && noSelectedNotes && notOptionsOrHelp},{ title: t("tree-context-menu.convert-to-attachment"), command: "convertNoteToAttachment", uiIcon: "bx bx-paperclip", enabled: isNotRoot && !isHoisted && notOptionsOrHelp },- {- title: `${t("tree-context-menu.duplicate-subtree")} <kbd data-command="duplicateSubtree">`,- command: "duplicateSubtree",- uiIcon: "bx bx-outline",- enabled: parentNotSearch && isNotRoot && !isHoisted && notOptionsOrHelp- },-+{ title: "----" },{ title: `${t("tree-context-menu.expand-subtree")} <kbd data-command="expandSubtree"></kbd>`, command: "expandSubtree", uiIcon: "bx bx-expand", enabled: noSelectedNotes },@@ -188,6 +182,13 @@ export default class TreeContextMenu implements SelectMenuItemEventListener<Tree{ title: `${t("tree-context-menu.clone-to")} <kbd data-command="cloneNotesTo"></kbd>`, command: "cloneNotesTo", uiIcon: "bx bx-duplicate", enabled: isNotRoot && !isHoisted },+ {+ title: `${t("tree-context-menu.duplicate")} <kbd data-command="duplicateSubtree">`,+ command: "duplicateSubtree",+ uiIcon: "bx bx-outline",+ enabled: parentNotSearch && isNotRoot && !isHoisted && notOptionsOrHelp+ },+{title: `${t("tree-context-menu.delete")} <kbd data-command="deleteNotes"></kbd>`,command: "deleteNotes",