mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
edit button should get refreshed based on type change
This commit is contained in:
@@ -49,4 +49,10 @@ export default class EditButton extends ButtonWidget {
|
||||
this.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
async noteTypeMimeChangedEvent({noteId}) {
|
||||
if (this.isNote(noteId)) {
|
||||
await this.refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user