Disable Search in note button in global search context.

This button doesn't actually do anything in the global search window, so
it should be greyed out/disabled.
This commit is contained in:
Andrew Pluzhnikov 2023-07-16 10:40:34 -07:00
parent 05d2f4fe96
commit 4307f25205

View File

@ -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));