hidden notes should not appear in the global search unless hoisted into it, #3516

This commit is contained in:
zadam
2023-01-13 10:09:41 +01:00
parent e7b3c3239b
commit 88bc7402a2
9 changed files with 64 additions and 6 deletions

View File

@@ -76,7 +76,7 @@ export default class CodeButtonsWidget extends NoteContextAwareWidget {
this.$saveToNoteButton.toggle(
note.mime === 'text/x-sqlite;schema=trilium'
&& !note.getAllNotePaths().find(notePathArr => !notePathArr.includes('_hidden'))
&& note.isHiddenCompletely()
);
this.$openTriliumApiDocsButton.toggle(note.mime.startsWith('application/javascript;env='));