Configuration for adapters added

This commit is contained in:
Piotr Pekala
2019-01-28 07:42:09 -08:00
parent 7eac08ab91
commit dc6b2f0940
17 changed files with 148 additions and 33 deletions

View File

@ -0,0 +1,23 @@
<h1 mat-dialog-title>Add server</h1>
<div mat-dialog-content>
<mat-form-field> <input matInput tabindex="1" [(ngModel)]="server.name" placeholder="Name" /> </mat-form-field>
<mat-form-field> <input matInput tabindex="1" [(ngModel)]="server.ip" placeholder="IP" /> </mat-form-field>
<mat-form-field> <input matInput tabindex="1" [(ngModel)]="server.port" placeholder="Port" /> </mat-form-field>
<mat-form-field>
<mat-select placeholder="Authorization" [(value)]="server.authorization">
<mat-option *ngFor="let auth of authorizations" [value]="auth.key"> {{ auth.name }} </mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="server.authorization === 'basic'">
<input matInput tabindex="1" [(ngModel)]="server.login" placeholder="Login" />
</mat-form-field>
<mat-form-field *ngIf="server.authorization === 'basic'">
<input matInput tabindex="1" [(ngModel)]="server.password" placeholder="Password" />
</mat-form-field>
</div>
<div mat-dialog-actions>
<button mat-button (click)="onNoClick()" tabindex="-1" color="accent">No Thanks</button>
<button mat-button (click)="onAddClick()" tabindex="2" mat-raised-button color="primary">Add</button>
</div>