mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 01:35:51 +01:00
hidden notes should not appear in the global search unless hoisted into it, #3516
This commit is contained in:
@@ -1107,6 +1107,13 @@ class Note extends AbstractEntity {
|
||||
return notePaths;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean - true if there's no non-hidden path, note is not cloned to the visible tree
|
||||
*/
|
||||
isHiddenCompletely() {
|
||||
return !this.getAllNotePaths().find(notePathArr => !notePathArr.includes('_hidden'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ancestorNoteId
|
||||
* @return {boolean} - true if ancestorNoteId occurs in at least one of the note's paths
|
||||
|
||||
Reference in New Issue
Block a user