mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01: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}) {
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user