Browse Source

Merge branch 'feature/iot-hub' into feature/lts-4.3-iot-hub

pull/15540/head
Igor Kulikov 4 months ago
parent
commit
d66318646b
  1. 4
      ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts

4
ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts

@ -107,6 +107,10 @@ export const getInstalledItemUrl = (descriptor?: IotHubInstalledItemDescriptor):
let entityId: string | null = null;
let entityType: EntityType | null = null;
switch (descriptor.type) {
case 'DEVICE':
entityId = descriptor.dashboardId?.id;
entityType = EntityType.DASHBOARD;
break;
case 'WIDGET':
entityId = descriptor.widgetTypeId?.id;
entityType = EntityType.WIDGET_TYPE;

Loading…
Cancel
Save