Merge pull request #4098 from AndrewPluzhnikov/fix-search-in-text

Disable Search in note button in global search context.
This commit is contained in:
zadam 2023-07-17 22:30:49 +02:00 committed by GitHub
commit dc0a0dcf09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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