Browse Source
Merge pull request #5112 from vvlladd28/bug/mqtt-credentials/client-id
[3.3.1] UI: Added support for UTF-8 characters in MQTT credential Client ID
pull/5140/head
Igor Kulikov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
ui-ngx/src/app/modules/home/components/device/device-credentials-mqtt-basic.component.ts
|
|
@ -59,7 +59,7 @@ export class DeviceCredentialsMqttBasicComponent implements ControlValueAccessor |
|
|
|
|
|
|
|
|
constructor(public fb: FormBuilder) { |
|
|
constructor(public fb: FormBuilder) { |
|
|
this.deviceCredentialsMqttFormGroup = this.fb.group({ |
|
|
this.deviceCredentialsMqttFormGroup = this.fb.group({ |
|
|
clientId: [null, [Validators.pattern(/^[A-Za-z0-9]+$/)]], |
|
|
clientId: [null], |
|
|
userName: [null], |
|
|
userName: [null], |
|
|
password: [null] |
|
|
password: [null] |
|
|
}, {validators: this.atLeastOne(Validators.required, ['clientId', 'userName'])}); |
|
|
}, {validators: this.atLeastOne(Validators.required, ['clientId', 'userName'])}); |
|
|
|