mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 21:30:53 +08:00
Close the find dialog when the note is temporarily readable
This commit is contained in:
parent
858814356a
commit
fc50252e97
1 changed files with 6 additions and 0 deletions
|
|
@ -240,6 +240,12 @@ export default class FindWidget extends NoteContextAwareWidget {
|
|||
}
|
||||
}
|
||||
|
||||
async readOnlyTemporarilyDisabledEvent({ noteContext }: EventData<"readOnlyTemporarilyDisabled">) {
|
||||
if (this.isNoteContext(noteContext.ntxId)) {
|
||||
await this.closeSearch();
|
||||
}
|
||||
}
|
||||
|
||||
async getHandler() {
|
||||
if (this.note?.type === "render") {
|
||||
return this.htmlHandler;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue