Browse Source
Merge pull request #11015 from maxunbearable/fix/3859-grcp-custom-inputs
Added missing inputs for Custom and GRCP Connectors
pull/11071/head
Vladyslav Prykhodko
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
34 additions and
0 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/dialog/add-connector-dialog.component.ts
-
ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.html
|
|
|
@ -58,6 +58,22 @@ |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div *ngIf="connectorForm.get('type').value === connectorType.CUSTOM" class="tb-form-row column-xs" fxLayoutAlign="space-between center"> |
|
|
|
<div class="fixed-title-width" translate>gateway.connectors-table-class</div> |
|
|
|
<div class="tb-flex no-gap"> |
|
|
|
<mat-form-field class="tb-flex no-gap" appearance="outline" subscriptSizing="dynamic"> |
|
|
|
<input matInput name="value" formControlName="class" placeholder="{{ 'gateway.set' | translate }}"/> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div *ngIf="connectorForm.get('type').value === connectorType.GRPC" class="tb-form-row column-xs" fxLayoutAlign="space-between center"> |
|
|
|
<div class="fixed-title-width" translate>gateway.connectors-table-key</div> |
|
|
|
<div class="tb-flex no-gap"> |
|
|
|
<mat-form-field class="tb-flex no-gap" appearance="outline" subscriptSizing="dynamic"> |
|
|
|
<input matInput name="value" formControlName="key" placeholder="{{ 'gateway.set' | translate }}"/> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="tb-form-row column-xs" fxLayoutAlign="space-between center"> |
|
|
|
<div class="fixed-title-width" translate>gateway.remote-logging-level</div> |
|
|
|
<div class="tb-flex no-gap"> |
|
|
|
|
|
|
|
@ -66,6 +66,8 @@ export class AddConnectorDialogComponent extends DialogComponent<AddConnectorDia |
|
|
|
logLevel: [GatewayLogLevel.INFO, []], |
|
|
|
useDefaults: [true, []], |
|
|
|
sendDataOnlyOnChange: [false, []], |
|
|
|
class: ['', []], |
|
|
|
key: ['auto', []], |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -190,6 +190,22 @@ |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div *ngIf="connectorForm.get('type').value === connectorType.CUSTOM" class="tb-form-row column-xs" fxLayoutAlign="space-between center"> |
|
|
|
<div class="fixed-title-width" translate>gateway.connectors-table-class</div> |
|
|
|
<div class="tb-flex no-gap"> |
|
|
|
<mat-form-field class="tb-flex no-gap" appearance="outline" subscriptSizing="dynamic"> |
|
|
|
<input matInput name="value" formControlName="class" placeholder="{{ 'gateway.set' | translate }}"/> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div *ngIf="connectorForm.get('type').value === connectorType.GRPC" class="tb-form-row column-xs" fxLayoutAlign="space-between center"> |
|
|
|
<div class="fixed-title-width" translate>gateway.connectors-table-key</div> |
|
|
|
<div class="tb-flex no-gap"> |
|
|
|
<mat-form-field class="tb-flex no-gap" appearance="outline" subscriptSizing="dynamic"> |
|
|
|
<input matInput name="value" formControlName="key" placeholder="{{ 'gateway.set' | translate }}"/> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="tb-form-panel stroked"> |
|
|
|
<div class="tb-form-panel-title" translate>gateway.logs-configuration</div> |
|
|
|
<div class="tb-form-row" fxLayoutAlign="space-between center"> |
|
|
|
|