Browse Source

Fixed bug with missing required credential-config for LwM2M device-profiles.

pull/5588/head
Sergey Tarnavskiy 5 years ago
parent
commit
31a1af5814
  1. 8
      ui-ngx/src/app/modules/home/components/wizard/device-wizard-dialog.component.ts

8
ui-ngx/src/app/modules/home/components/wizard/device-wizard-dialog.component.ts

@ -252,6 +252,14 @@ export class DeviceWizardDialogComponent extends
private deviceProfileTransportTypeChanged(deviceTransportType: DeviceTransportType): void {
this.transportConfigFormGroup.patchValue(
{transportConfiguration: createDeviceProfileTransportConfiguration(deviceTransportType)});
const setCredentialBox = this.credentialsFormGroup.get('setCredential');
if (deviceTransportType === DeviceTransportType.LWM2M) {
setCredentialBox.patchValue(true);
setCredentialBox.disable();
} else {
setCredentialBox.patchValue(false);
setCredentialBox.enable();
}
}
add(): void {

Loading…
Cancel
Save