|
|
|
@ -28,10 +28,19 @@ |
|
|
|
</mat-toolbar> |
|
|
|
<div mat-dialog-content [formGroup]="slaveConfigFormGroup" class="tb-form-panel"> |
|
|
|
<div class="tb-form-row column-xs" fxLayoutAlign="space-between center"> |
|
|
|
<div class="fixed-title-width" translate>gateway.name</div> |
|
|
|
<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 }}"/> |
|
|
|
<mat-icon matSuffix |
|
|
|
matTooltipPosition="above" |
|
|
|
matTooltipClass="tb-error-tooltip" |
|
|
|
[matTooltip]="('gateway.name-required') | translate" |
|
|
|
*ngIf="slaveConfigFormGroup.get('name').hasError('required') && |
|
|
|
slaveConfigFormGroup.get('name').touched" |
|
|
|
class="tb-error"> |
|
|
|
warning |
|
|
|
</mat-icon> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -89,10 +98,21 @@ |
|
|
|
</div> |
|
|
|
<ng-template #serialPort> |
|
|
|
<div class="tb-form-row column-xs" fxLayoutAlign="space-between center"> |
|
|
|
<div class="fixed-title-width" translate>gateway.port</div> |
|
|
|
<div class="fixed-title-width tb-required" translate>gateway.port</div> |
|
|
|
<div class="tb-flex no-gap"> |
|
|
|
<mat-form-field class="tb-flex no-gap" appearance="outline" subscriptSizing="dynamic"> |
|
|
|
<input matInput name="value" formControlName="serialPort" placeholder="{{ 'gateway.set' | translate }}"/> |
|
|
|
<mat-icon matSuffix |
|
|
|
matTooltipPosition="above" |
|
|
|
matTooltipClass="tb-error-tooltip" |
|
|
|
[matTooltip]="slaveConfigFormGroup.get('serialPort') | getGatewayPortTooltip" |
|
|
|
*ngIf="(slaveConfigFormGroup.get('serialPort').hasError('required') || |
|
|
|
slaveConfigFormGroup.get('serialPort').hasError('min') || |
|
|
|
slaveConfigFormGroup.get('serialPort').hasError('max')) && |
|
|
|
slaveConfigFormGroup.get('serialPort').touched" |
|
|
|
class="tb-error"> |
|
|
|
warning |
|
|
|
</mat-icon> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|