mirror of
https://github.com/zadam/trilium.git
synced 2024-09-21 08:06:03 +08:00
refresh note detail icon after type change
This commit is contained in:
parent
476b8250c9
commit
b0d767df69
|
@ -123,6 +123,11 @@ export default class NoteIconWidget extends NoteContextAwareWidget {
|
|||
}
|
||||
|
||||
async entitiesReloadedEvent({loadResults}) {
|
||||
if (loadResults.isNoteReloaded(this.noteId)) {
|
||||
this.refresh();
|
||||
return;
|
||||
}
|
||||
|
||||
for (const attr of loadResults.getAttributes()) {
|
||||
if (attr.type === 'label'
|
||||
&& ['iconClass', 'workspaceIconClass'].includes(attr.name)
|
||||
|
|
Loading…
Reference in a new issue