Commit f0db16accadd0efbc77c1f6cdfc4a00c95411388

Authored by ArtemDzhereleiko
1 parent 327607e8

fix bug no entity label for dachboard state

@@ -149,7 +149,8 @@ export class EntitiesHierarchyWidgetComponent extends PageComponent implements O @@ -149,7 +149,8 @@ export class EntitiesHierarchyWidgetComponent extends PageComponent implements O
149 entityType: EntityType.DEVICE, 149 entityType: EntityType.DEVICE,
150 id: '123' 150 id: '123'
151 }, 151 },
152 - name: 'TEST DEV1' 152 + name: 'TEST DEV1',
  153 + label: ''
153 }, 154 },
154 data: {}, 155 data: {},
155 level: 2 156 level: 2
@@ -289,7 +290,7 @@ export class EntitiesHierarchyWidgetComponent extends PageComponent implements O @@ -289,7 +290,7 @@ export class EntitiesHierarchyWidgetComponent extends PageComponent implements O
289 const descriptors = this.ctx.actionsApi.getActionDescriptors('nodeSelected'); 290 const descriptors = this.ctx.actionsApi.getActionDescriptors('nodeSelected');
290 if (descriptors.length) { 291 if (descriptors.length) {
291 const entity = selectedNode.data.nodeCtx.entity; 292 const entity = selectedNode.data.nodeCtx.entity;
292 - this.ctx.actionsApi.handleWidgetAction(event, descriptors[0], entity.id, entity.name, { nodeCtx: selectedNode.data.nodeCtx }); 293 + this.ctx.actionsApi.handleWidgetAction(event, descriptors[0], entity.id, entity.name,{ nodeCtx: selectedNode.data.nodeCtx }, entity.label);
293 } 294 }
294 } 295 }
295 } 296 }