fixed issue with header actions in rpc-widgets

This commit is contained in:
Sergey Tarnavskiy 2018-10-05 17:09:55 +03:00
parent af8c0bbe39
commit f0d7cd6348

View File

@ -172,9 +172,9 @@ export default class Subscription {
if (this.type === this.ctx.types.widgetType.rpc.value) { if (this.type === this.ctx.types.widgetType.rpc.value) {
if (this.targetDeviceId) { if (this.targetDeviceId) {
entityId = { entityId = {
entityType: this.ctx.entityType.device, entityType: this.ctx.types.entityType.device,
id: this.targetDeviceId id: this.targetDeviceId
} };
entityName = this.targetDeviceName; entityName = this.targetDeviceName;
} }
} else if (this.type == this.ctx.types.widgetType.alarm.value) { } else if (this.type == this.ctx.types.widgetType.alarm.value) {
@ -182,7 +182,7 @@ export default class Subscription {
entityId = { entityId = {
entityType: this.alarmSource.entityType, entityType: this.alarmSource.entityType,
id: this.alarmSource.entityId id: this.alarmSource.entityId
} };
entityName = this.alarmSource.entityName; entityName = this.alarmSource.entityName;
} }
} else { } else {
@ -192,7 +192,7 @@ export default class Subscription {
entityId = { entityId = {
entityType: datasource.entityType, entityType: datasource.entityType,
id: datasource.entityId id: datasource.entityId
} };
entityName = datasource.entityName; entityName = datasource.entityName;
break; break;
} }