Option to choose protocol from AddServerDialog

This commit is contained in:
piotrpekala7
2020-11-03 20:15:10 +01:00
parent 5cb3aa051b
commit 288879ccb2
7 changed files with 29 additions and 11 deletions

View File

@ -28,6 +28,12 @@
<input matInput tabindex="1" formControlName="port" placeholder="Port" />
</mat-form-field>
<mat-form-field>
<mat-select placeholder="Protocol" formControlName="protocol" >
<mat-option *ngFor="let protocol of protocols" [value]="protocol.key"> {{ protocol.name }} </mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="serverForm.get('location').value === 'remote'">
<mat-select placeholder="Authorization" formControlName="authorization" >
<mat-option *ngFor="let auth of authorizations" [value]="auth.key"> {{ auth.name }} </mat-option>