mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +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}) {
 | 
			
		||||
        if (loadResults.isNoteReloaded(this.noteId)) {
 | 
			
		||||
            this.refresh();
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        for (const attr of loadResults.getAttributes()) {
 | 
			
		||||
            if (attr.type === 'label'
 | 
			
		||||
                && ['iconClass', 'workspaceIconClass'].includes(attr.name)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user