mirror of
https://github.com/zadam/trilium.git
synced 2024-09-22 00:26:01 +08:00
edit button should get refreshed based on type change
This commit is contained in:
parent
c6d4eb486e
commit
a4e99662cb
|
@ -49,4 +49,10 @@ export default class EditButton extends ButtonWidget {
|
|||
this.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
async noteTypeMimeChangedEvent({noteId}) {
|
||||
if (this.isNote(noteId)) {
|
||||
await this.refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue