mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
fix displaying hidden notes in the note's children list #2664
This commit is contained in:
@@ -58,10 +58,20 @@ class Note extends AbstractEntity {
|
||||
return this.children;
|
||||
}
|
||||
|
||||
getVisibleChildNotes() {
|
||||
console.log(this.children.filter(childNote => !childNote.hasLabel('shareHiddenFromTree')));
|
||||
|
||||
return this.children.filter(childNote => !childNote.hasLabel('shareHiddenFromTree'));
|
||||
}
|
||||
|
||||
hasChildren() {
|
||||
return this.children && this.children.length > 0;
|
||||
}
|
||||
|
||||
hasVisibleChildren() {
|
||||
return this.children && !!this.children.find(childNote => !childNote.hasLabel('shareHiddenFromTree'));
|
||||
}
|
||||
|
||||
getChildBranches() {
|
||||
return this.children.map(childNote => this.shaca.getBranchFromChildAndParent(childNote.noteId, this.noteId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user