mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-22 10:20:48 +00:00
I removed unwanted code
This commit is contained in:
parent
7ff43eb582
commit
0df6294cc7
@ -150,7 +150,6 @@ export class AddQemuVmTemplateComponent implements OnInit {
|
||||
}
|
||||
|
||||
addTemplate() {
|
||||
debugger
|
||||
if (!this.nameForm.invalid && !this.memoryForm.invalid && (this.selectedImage || this.chosenImage)) {
|
||||
this.qemuTemplate.ram = +this.memoryForm.get('ramMemory').value;
|
||||
this.qemuTemplate.qemu_path = this.selectedBinary.path;
|
||||
|
@ -1,21 +1,10 @@
|
||||
<div
|
||||
*ngIf="isDraggingEnabled"
|
||||
(document:mousemove)="dragWidget($event)"
|
||||
(document:mouseup)="toggleDragging(false)"
|
||||
></div>
|
||||
<div *ngIf="isDraggingEnabled" (document:mousemove)="dragWidget($event)" (document:mouseup)="toggleDragging(false)">
|
||||
</div>
|
||||
<!-- Option with resizing -->
|
||||
<div
|
||||
class="consoleWrapper"
|
||||
[ngClass]="{ lightTheme: isLightThemeEnabled }"
|
||||
(mousedown)="toggleDragging(true)"
|
||||
[ngStyle]="style"
|
||||
mwlResizable
|
||||
[validateResize]="validate"
|
||||
[resizeEdges]="{ right: true, left: true, bottom: true, top: true }"
|
||||
[enableGhostResize]="true"
|
||||
(resizeStart)="toggleDragging(false)"
|
||||
(resizeEnd)="onResizeEnd($event)"
|
||||
>
|
||||
<div class="consoleWrapper" [ngClass]="{ lightTheme: isLightThemeEnabled }" (mousedown)="toggleDragging(true)"
|
||||
[ngStyle]="style" mwlResizable [validateResize]="validate"
|
||||
[resizeEdges]="{ right: true, left: true, bottom: true, top: true }" [enableGhostResize]="true"
|
||||
(resizeStart)="toggleDragging(false)" (resizeEnd)="onResizeEnd($event)">
|
||||
|
||||
<div class="consoleHeader" [ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }">
|
||||
<mat-tab-group class="tabs" [selectedIndex]="selected.value" (selectedIndexChange)="selected.setValue($event)">
|
||||
@ -28,63 +17,34 @@
|
||||
<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
|
||||
[ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }"
|
||||
style="color: white"
|
||||
mat-icon-button
|
||||
(click)="removeTab(index)"
|
||||
>
|
||||
<button [ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }" style="color: white" mat-icon-button
|
||||
(click)="removeTab(index)">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
</ng-template>
|
||||
</mat-tab>
|
||||
</mat-tab-group>
|
||||
|
||||
<button
|
||||
*ngIf="!isMinimized"
|
||||
[ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }"
|
||||
style="color: white"
|
||||
mat-icon-button
|
||||
(click)="minimize(true)"
|
||||
>
|
||||
<button *ngIf="!isMinimized" [ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }" style="color: white"
|
||||
mat-icon-button (click)="minimize(true)">
|
||||
<mat-icon>remove</mat-icon>
|
||||
</button>
|
||||
<button
|
||||
*ngIf="isMinimized"
|
||||
[ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }"
|
||||
style="color: white"
|
||||
mat-icon-button
|
||||
(click)="minimize(false)"
|
||||
>
|
||||
<button *ngIf="isMinimized" [ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }" style="color: white"
|
||||
mat-icon-button (click)="minimize(false)">
|
||||
<mat-icon>web_asset</mat-icon>
|
||||
</button>
|
||||
<button
|
||||
[ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }"
|
||||
style="color: white"
|
||||
mat-icon-button
|
||||
(click)="close()"
|
||||
>
|
||||
<button [ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }" style="color: white" mat-icon-button
|
||||
(click)="close()">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<app-log-console
|
||||
[hidden]="!(selected.value === 0) || isMinimized"
|
||||
[server]="server"
|
||||
[project]="project"
|
||||
></app-log-console>
|
||||
<app-log-console [hidden]="!(selected.value === 0) || isMinimized" [server]="server" [project]="project">
|
||||
</app-log-console>
|
||||
|
||||
<div
|
||||
(mouseover)="disableScroll($event)"
|
||||
(mouseout)="enableScroll($event)"
|
||||
class="xterm-console"
|
||||
[hidden]="isMinimized"
|
||||
*ngFor="let node of nodes; let index = index"
|
||||
>
|
||||
<app-web-console
|
||||
[hidden]="!(selected.value === index + 1)"
|
||||
[server]="server"
|
||||
[node]="nodes[index]"
|
||||
></app-web-console>
|
||||
<div (mouseover)="disableScroll($event)" (mouseout)="enableScroll($event)" class="xterm-console"
|
||||
[hidden]="isMinimized" *ngFor="let node of nodes; let index = index">
|
||||
<app-web-console [hidden]="!(selected.value === index + 1)" [server]="server" [node]="nodes[index]">
|
||||
</app-web-console>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -480,7 +480,6 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
||||
};
|
||||
|
||||
this.projectws.onerror = (event: MessageEvent) => {
|
||||
debugger
|
||||
this.toasterService.error(`Connection to host lost. Error: ${event.data}`);
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user