Commit f0d7cd6348d48a60ca41da7c61bcf150f9ddc13f
1 parent
af8c0bbe
fixed issue with header actions in rpc-widgets
Showing
1 changed file
with
4 additions
and
4 deletions
... | ... | @@ -172,9 +172,9 @@ export default class Subscription { |
172 | 172 | if (this.type === this.ctx.types.widgetType.rpc.value) { |
173 | 173 | if (this.targetDeviceId) { |
174 | 174 | entityId = { |
175 | - entityType: this.ctx.entityType.device, | |
175 | + entityType: this.ctx.types.entityType.device, | |
176 | 176 | id: this.targetDeviceId |
177 | - } | |
177 | + }; | |
178 | 178 | entityName = this.targetDeviceName; |
179 | 179 | } |
180 | 180 | } else if (this.type == this.ctx.types.widgetType.alarm.value) { |
... | ... | @@ -182,7 +182,7 @@ export default class Subscription { |
182 | 182 | entityId = { |
183 | 183 | entityType: this.alarmSource.entityType, |
184 | 184 | id: this.alarmSource.entityId |
185 | - } | |
185 | + }; | |
186 | 186 | entityName = this.alarmSource.entityName; |
187 | 187 | } |
188 | 188 | } else { |
... | ... | @@ -192,7 +192,7 @@ export default class Subscription { |
192 | 192 | entityId = { |
193 | 193 | entityType: datasource.entityType, |
194 | 194 | id: datasource.entityId |
195 | - } | |
195 | + }; | |
196 | 196 | entityName = datasource.entityName; |
197 | 197 | break; |
198 | 198 | } | ... | ... |