mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-16 14:38:52 +00:00
Close button for console added
This commit is contained in:
parent
d16913a678
commit
2d8c5966cd
@ -21,23 +21,29 @@
|
||||
(mousedown)="toggleDragging(true)"
|
||||
[ngStyle]="style">
|
||||
|
||||
<mat-tab-group [selectedIndex]="selected.value" (selectedIndexChange)="selected.setValue($event)">
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<div class="col" style="margin-left: 20px;">GNS3 console</div>
|
||||
</ng-template>
|
||||
</mat-tab>
|
||||
<div class="consoleHeader">
|
||||
<mat-tab-group class="tabs" [selectedIndex]="selected.value" (selectedIndexChange)="selected.setValue($event)">
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<div class="col" style="margin-left: 20px;">GNS3 console</div>
|
||||
</ng-template>
|
||||
</mat-tab>
|
||||
|
||||
<mat-tab *ngFor="let node of nodes; let index = index" [label]="tab">
|
||||
<ng-template mat-tab-label>
|
||||
<div class="col" style="margin-left: 20px;">{{node.name}}</div>
|
||||
<button style="color:white" mat-icon-button (click)="removeTab(index)">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
</ng-template>
|
||||
</mat-tab>
|
||||
|
||||
</mat-tab-group>
|
||||
|
||||
<mat-tab *ngFor="let node of nodes; let index = index" [label]="tab">
|
||||
<ng-template mat-tab-label>
|
||||
<div class="col" style="margin-left: 20px;">{{node.name}}</div>
|
||||
<button style="color:white" mat-icon-button (click)="removeTab(index)">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
</ng-template>
|
||||
</mat-tab>
|
||||
|
||||
</mat-tab-group>
|
||||
<button style="color:white" mat-icon-button (click)="close()">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<app-log-console [hidden]="!(selected.value===0)" [server]="server" [project]="project"></app-log-console>
|
||||
|
||||
|
@ -33,7 +33,6 @@
|
||||
|
||||
.consoleHeader {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
font-size: 12px;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
@ -41,6 +40,10 @@
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
width: 675px;
|
||||
}
|
||||
|
||||
.console {
|
||||
width: 596px;
|
||||
height: 120px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user