mirror of
https://github.com/zadam/trilium.git
synced 2026-03-04 09:48:11 +01:00
feat(tree): allow hiding child notes via attribute
This commit is contained in:
parent
ed972d2601
commit
4f6c10d995
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user