Browse Source

DeviceProfileProvisionConfigurationComponent writeValue set certificateValue as provisionDeviceSecret

pull/7935/head
deaflynx 4 years ago
parent
commit
d1a21900f0
  1. 3
      ui-ngx/src/app/modules/home/components/profile/device-profile-provision-configuration.component.ts

3
ui-ngx/src/app/modules/home/components/profile/device-profile-provision-configuration.component.ts

@ -143,6 +143,9 @@ export class DeviceProfileProvisionConfigurationComponent implements ControlValu
writeValue(value: DeviceProvisionConfiguration | null): void {
if (isDefinedAndNotNull(value)) {
if (value.type === DeviceProvisionType.X509_CERTIFICATE_CHAIN) {
value.certificateValue = value.provisionDeviceSecret;
}
this.provisionConfigurationFormGroup.patchValue(value, {emitEvent: false});
} else {
this.provisionConfigurationFormGroup.patchValue({type: DeviceProvisionType.DISABLED});

Loading…
Cancel
Save