Browse Source

Changed device to deviceName

pull/12467/head
mpetrov 2 years ago
parent
commit
8d4c90b389
  1. 2
      ui-ngx/src/app/modules/home/components/widget/widget.component.ts
  2. 2
      ui-ngx/src/app/shared/models/widget.models.ts

2
ui-ngx/src/app/modules/home/components/widget/widget.component.ts

@ -1294,7 +1294,7 @@ export class WidgetComponent extends PageComponent implements OnInit, OnChanges,
}
break;
case WidgetMobileActionType.provisionDevice:
const deviceName = actionResult.device.name;
const deviceName = actionResult.deviceName;
if (isNotEmptyTbFunction(mobileAction.handleProvisionSuccessFunction)) {
compileTbFunction(this.http, mobileAction.handleProvisionSuccessFunction, 'deviceName', '$event', 'widgetContext', 'entityId',
'entityName', 'additionalParams', 'entityLabel').subscribe(

2
ui-ngx/src/app/shared/models/widget.models.ts

@ -639,7 +639,7 @@ export interface MobileLocationResult {
}
export interface MobileDeviceProvisioningResult {
device: Device;
deviceName: string;
}
export type MobileActionResult = MobileLaunchResult &

Loading…
Cancel
Save