From f0d7cd6348d48a60ca41da7c61bcf150f9ddc13f Mon Sep 17 00:00:00 2001 From: Sergey Tarnavskiy Date: Fri, 5 Oct 2018 17:09:55 +0300 Subject: [PATCH] fixed issue with header actions in rpc-widgets --- ui/src/app/api/subscription.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/app/api/subscription.js b/ui/src/app/api/subscription.js index a66c4b1efa..4a38f7166c 100644 --- a/ui/src/app/api/subscription.js +++ b/ui/src/app/api/subscription.js @@ -172,9 +172,9 @@ export default class Subscription { if (this.type === this.ctx.types.widgetType.rpc.value) { if (this.targetDeviceId) { entityId = { - entityType: this.ctx.entityType.device, + entityType: this.ctx.types.entityType.device, id: this.targetDeviceId - } + }; entityName = this.targetDeviceName; } } else if (this.type == this.ctx.types.widgetType.alarm.value) { @@ -182,7 +182,7 @@ export default class Subscription { entityId = { entityType: this.alarmSource.entityType, id: this.alarmSource.entityId - } + }; entityName = this.alarmSource.entityName; } } else { @@ -192,7 +192,7 @@ export default class Subscription { entityId = { entityType: datasource.entityType, id: datasource.entityId - } + }; entityName = datasource.entityName; break; }