Browse Source
Merge pull request #11000 from rusikv/bug/gateway-connectors-validation
Fixed Gateway connectors name form fields
pull/11071/head
Vladyslav Prykhodko
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
4 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/gateway/dialog/add-connector-dialog.component.html
-
ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.html
|
|
|
@ -44,7 +44,7 @@ |
|
|
|
<div class="fixed-title-width tb-required" translate>gateway.name</div> |
|
|
|
<div class="tb-flex no-gap"> |
|
|
|
<mat-form-field class="tb-flex no-gap" appearance="outline" subscriptSizing="dynamic"> |
|
|
|
<input matInput name="value" formControlName="name" placeholder="{{ 'gateway.set' | translate }}"/> |
|
|
|
<input matInput autocomplete="off" name="value" formControlName="name" placeholder="{{ 'gateway.set' | translate }}"/> |
|
|
|
<mat-icon matSuffix |
|
|
|
matTooltipPosition="above" |
|
|
|
matTooltipClass="tb-error-tooltip" |
|
|
|
|
|
|
|
@ -178,12 +178,14 @@ |
|
|
|
<div class="fixed-title-width tb-required" translate>gateway.name</div> |
|
|
|
<div class="tb-flex no-gap"> |
|
|
|
<mat-form-field class="tb-flex no-gap" appearance="outline" subscriptSizing="dynamic"> |
|
|
|
<input matInput name="value" formControlName="name" placeholder="{{ 'gateway.set' | translate }}"/> |
|
|
|
<input matInput autocomplete="off" name="value" formControlName="name" placeholder="{{ 'gateway.set' | translate }}"/> |
|
|
|
<mat-icon matSuffix |
|
|
|
matTooltipPosition="above" |
|
|
|
matTooltipClass="tb-error-tooltip" |
|
|
|
[matTooltip]="('gateway.name-required') | translate" |
|
|
|
*ngIf="connectorForm.get('name').hasError('required') && connectorForm.get('name').touched" |
|
|
|
[matTooltip]="(connectorForm.get('name').hasError('duplicateName') ? |
|
|
|
'gateway.connector-duplicate-name' : 'gateway.name-required') | translate" |
|
|
|
*ngIf="(connectorForm.get('name').hasError('required') && connectorForm.get('name').touched) || |
|
|
|
connectorForm.get('name').hasError('duplicateName')" |
|
|
|
class="tb-error"> |
|
|
|
warning |
|
|
|
</mat-icon> |
|
|
|
|