Browse Source
Merge pull request #5102 from ArtemDzhereleiko/bug-fix/no-entity-label/dashboard-state
[3.3.2] Fix bug no entity label for dashboard state
pull/5175/head
Igor Kulikov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/entities-hierarchy-widget.component.ts
|
|
@ -149,7 +149,8 @@ export class EntitiesHierarchyWidgetComponent extends PageComponent implements O |
|
|
entityType: EntityType.DEVICE, |
|
|
entityType: EntityType.DEVICE, |
|
|
id: '123' |
|
|
id: '123' |
|
|
}, |
|
|
}, |
|
|
name: 'TEST DEV1' |
|
|
name: 'TEST DEV1', |
|
|
|
|
|
label: '' |
|
|
}, |
|
|
}, |
|
|
data: {}, |
|
|
data: {}, |
|
|
level: 2 |
|
|
level: 2 |
|
|
@ -289,7 +290,7 @@ export class EntitiesHierarchyWidgetComponent extends PageComponent implements O |
|
|
const descriptors = this.ctx.actionsApi.getActionDescriptors('nodeSelected'); |
|
|
const descriptors = this.ctx.actionsApi.getActionDescriptors('nodeSelected'); |
|
|
if (descriptors.length) { |
|
|
if (descriptors.length) { |
|
|
const entity = selectedNode.data.nodeCtx.entity; |
|
|
const entity = selectedNode.data.nodeCtx.entity; |
|
|
this.ctx.actionsApi.handleWidgetAction(event, descriptors[0], entity.id, entity.name, { nodeCtx: selectedNode.data.nodeCtx }); |
|
|
this.ctx.actionsApi.handleWidgetAction(event, descriptors[0], entity.id, entity.name,{ nodeCtx: selectedNode.data.nodeCtx }, entity.label); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|