Skip to content

Build your personal knowledge base with Trilium Notes

Disable Search in note button in global search context.

Andrew Pluzhnikov4307f2520568
diff --git a/src/public/app/widgets/buttons/note_actions.js b/src/public/app/widgets/buttons/note_actions.js
index b660c7da2c..abfa65afca 100644
--- a/src/public/app/widgets/buttons/note_actions.js
+++ b/src/public/app/widgets/buttons/note_actions.js
@@ -81,7 +81,7 @@ export default class NoteActionsWidget extends NoteContextAwareWidget {
}
refreshWithNote(note) {
- this.toggleDisabled(this.$findInTextButton, ['text', 'code', 'book', 'search'].includes(note.type));
+ this.toggleDisabled(this.$findInTextButton, ['text', 'code', 'book'].includes(note.type));
this.toggleDisabled(this.$showSourceButton, ['text', 'relationMap', 'mermaid'].includes(note.type));