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
feat(tray): support bookmark folders
Elian Doran09bf48e5a45c
diff --git a/src/services/tray.ts b/src/services/tray.tsindex 756ed7be70..a031860100 100644--- a/src/services/tray.ts+++ b/src/services/tray.ts@@ -91,15 +91,25 @@ function updateTrayMenu() {for (const bookmarkNote of parentNote?.children) {if (bookmarkNote.isLabelTruthy("bookmarkFolder")) {- // Ignore bookmark folders for now.- continue;+ menuItems.push({+ label: bookmarkNote.title,+ type: "submenu",+ submenu: bookmarkNote.children.map((subitem) => {+ return {+ label: subitem.title,+ type: "normal",+ click: () => openInSameTab(subitem)+ };+ })+ });+ } else {+ menuItems.push({+ label: bookmarkNote.title,+ type: "normal",+ click: () => openInSameTab(bookmarkNote)+ });}- menuItems.push({- label: bookmarkNote.title,- type: "normal",- click: () => openInSameTab(bookmarkNote)- });}return menuItems;