Browse Source

UI: fixed device profile create/update form validation

pull/11228/head
rusikv 2 years ago
parent
commit
7addeaf96c
  1. 3
      ui-ngx/src/app/modules/home/components/profile/device/device-profile-transport-configuration.component.ts

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

@ -121,7 +121,8 @@ export class DeviceProfileTransportConfigurationComponent implements ControlValu
} }
public validate(c: UntypedFormControl): ValidationErrors | null { public validate(c: UntypedFormControl): ValidationErrors | null {
return (this.deviceProfileTransportConfigurationFormGroup.valid) ? null : { return (this.transportType === DeviceTransportType.DEFAULT ||
this.deviceProfileTransportConfigurationFormGroup.valid) ? null : {
configuration: { configuration: {
valid: false, valid: false,
}, },

Loading…
Cancel
Save