mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-19 15:23:51 +00:00
Configuration for adapters added
This commit is contained in:
@ -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>
|
Reference in New Issue
Block a user