mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
Don't show protected notes in shared tree (#2704)
This commit is contained in:
parent
eba824a5b1
commit
77ce56ba84
@ -59,7 +59,7 @@ class Note extends AbstractEntity {
|
||||
}
|
||||
|
||||
getVisibleChildNotes() {
|
||||
return this.children.filter(childNote => !childNote.hasLabel('shareHiddenFromTree'));
|
||||
return this.children.filter(childNote => !childNote.hasLabel('shareHiddenFromTree') && !childNote.isProtected);
|
||||
}
|
||||
|
||||
hasChildren() {
|
||||
@ -67,7 +67,7 @@ class Note extends AbstractEntity {
|
||||
}
|
||||
|
||||
hasVisibleChildren() {
|
||||
return this.children && !!this.children.find(childNote => !childNote.hasLabel('shareHiddenFromTree'));
|
||||
return this.children && !!this.children.find(childNote => !childNote.hasLabel('shareHiddenFromTree') && !childNote.isProtected);
|
||||
}
|
||||
|
||||
getChildBranches() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user