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 149 entityType: EntityType.DEVICE,
150 150 id: '123'
151 151 },
152   - name: 'TEST DEV1'
  152 + name: 'TEST DEV1',
  153 + label: ''
153 154 },
154 155 data: {},
155 156 level: 2
... ... @@ -289,7 +290,7 @@ export class EntitiesHierarchyWidgetComponent extends PageComponent implements O
289 290 const descriptors = this.ctx.actionsApi.getActionDescriptors('nodeSelected');
290 291 if (descriptors.length) {
291 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 }
... ...