refresh note detail icon after type change

This commit is contained in:
zadam 2021-09-21 20:28:52 +02:00
parent 476b8250c9
commit b0d767df69

View file

@ -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)