Commit f0d7cd6348d48a60ca41da7c61bcf150f9ddc13f

Authored by Sergey Tarnavskiy
1 parent af8c0bbe

fixed issue with header actions in rpc-widgets

@@ -172,9 +172,9 @@ export default class Subscription { @@ -172,9 +172,9 @@ export default class Subscription {
172 if (this.type === this.ctx.types.widgetType.rpc.value) { 172 if (this.type === this.ctx.types.widgetType.rpc.value) {
173 if (this.targetDeviceId) { 173 if (this.targetDeviceId) {
174 entityId = { 174 entityId = {
175 - entityType: this.ctx.entityType.device, 175 + entityType: this.ctx.types.entityType.device,
176 id: this.targetDeviceId 176 id: this.targetDeviceId
177 - } 177 + };
178 entityName = this.targetDeviceName; 178 entityName = this.targetDeviceName;
179 } 179 }
180 } else if (this.type == this.ctx.types.widgetType.alarm.value) { 180 } else if (this.type == this.ctx.types.widgetType.alarm.value) {
@@ -182,7 +182,7 @@ export default class Subscription { @@ -182,7 +182,7 @@ export default class Subscription {
182 entityId = { 182 entityId = {
183 entityType: this.alarmSource.entityType, 183 entityType: this.alarmSource.entityType,
184 id: this.alarmSource.entityId 184 id: this.alarmSource.entityId
185 - } 185 + };
186 entityName = this.alarmSource.entityName; 186 entityName = this.alarmSource.entityName;
187 } 187 }
188 } else { 188 } else {
@@ -192,7 +192,7 @@ export default class Subscription { @@ -192,7 +192,7 @@ export default class Subscription {
192 entityId = { 192 entityId = {
193 entityType: datasource.entityType, 193 entityType: datasource.entityType,
194 id: datasource.entityId 194 id: datasource.entityId
195 - } 195 + };
196 entityName = datasource.entityName; 196 entityName = datasource.entityName;
197 break; 197 break;
198 } 198 }