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(tree): allow hiding child notes via attribute
Elian Doran4f6c10d9959f
diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.tsindex 9a2c61d227..a1f477993b 100644--- a/apps/client/src/widgets/note_tree.ts+++ b/apps/client/src/widgets/note_tree.ts@@ -803,6 +803,10 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {childBranches = childBranches.slice(0, MAX_SEARCH_RESULTS_IN_TREE);}+ if (parentNote.hasLabel("subtreeHidden")) {+ childBranches = [];+ }+for (const branch of childBranches) {if (hideArchivedNotes) {const note = branch.getNoteFromCache();