mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
refresh note detail icon after type change
This commit is contained in:
@@ -123,6 +123,11 @@ export default class NoteIconWidget extends NoteContextAwareWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async entitiesReloadedEvent({loadResults}) {
|
async entitiesReloadedEvent({loadResults}) {
|
||||||
|
if (loadResults.isNoteReloaded(this.noteId)) {
|
||||||
|
this.refresh();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (const attr of loadResults.getAttributes()) {
|
for (const attr of loadResults.getAttributes()) {
|
||||||
if (attr.type === 'label'
|
if (attr.type === 'label'
|
||||||
&& ['iconClass', 'workspaceIconClass'].includes(attr.name)
|
&& ['iconClass', 'workspaceIconClass'].includes(attr.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user