mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 22:00:33 +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() {
|
async getHandler() {
|
||||||
if (this.note?.type === "render") {
|
if (this.note?.type === "render") {
|
||||||
return this.htmlHandler;
|
return this.htmlHandler;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue