I removed unwanted code

This commit is contained in:
Rajnikant
2022-04-26 16:51:02 +05:30
parent 7ff43eb582
commit 0df6294cc7
3 changed files with 21 additions and 63 deletions

View File

@ -150,7 +150,6 @@ export class AddQemuVmTemplateComponent implements OnInit {
} }
addTemplate() { addTemplate() {
debugger
if (!this.nameForm.invalid && !this.memoryForm.invalid && (this.selectedImage || this.chosenImage)) { if (!this.nameForm.invalid && !this.memoryForm.invalid && (this.selectedImage || this.chosenImage)) {
this.qemuTemplate.ram = +this.memoryForm.get('ramMemory').value; this.qemuTemplate.ram = +this.memoryForm.get('ramMemory').value;
this.qemuTemplate.qemu_path = this.selectedBinary.path; this.qemuTemplate.qemu_path = this.selectedBinary.path;

View File

@ -1,21 +1,10 @@
<div <div *ngIf="isDraggingEnabled" (document:mousemove)="dragWidget($event)" (document:mouseup)="toggleDragging(false)">
*ngIf="isDraggingEnabled" </div>
(document:mousemove)="dragWidget($event)"
(document:mouseup)="toggleDragging(false)"
></div>
<!-- Option with resizing --> <!-- Option with resizing -->
<div <div class="consoleWrapper" [ngClass]="{ lightTheme: isLightThemeEnabled }" (mousedown)="toggleDragging(true)"
class="consoleWrapper" [ngStyle]="style" mwlResizable [validateResize]="validate"
[ngClass]="{ lightTheme: isLightThemeEnabled }" [resizeEdges]="{ right: true, left: true, bottom: true, top: true }" [enableGhostResize]="true"
(mousedown)="toggleDragging(true)" (resizeStart)="toggleDragging(false)" (resizeEnd)="onResizeEnd($event)">
[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 }"> <div class="consoleHeader" [ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }">
<mat-tab-group class="tabs" [selectedIndex]="selected.value" (selectedIndexChange)="selected.setValue($event)"> <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"> <mat-tab *ngFor="let node of nodes; let index = index" [label]="tab">
<ng-template mat-tab-label> <ng-template mat-tab-label>
<div class="col" style="margin-left: 20px">{{ node.name }}</div> <div class="col" style="margin-left: 20px">{{ node.name }}</div>
<button <button [ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }" style="color: white" mat-icon-button
[ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }" (click)="removeTab(index)">
style="color: white"
mat-icon-button
(click)="removeTab(index)"
>
<mat-icon>close</mat-icon> <mat-icon>close</mat-icon>
</button> </button>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
<button <button *ngIf="!isMinimized" [ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }" style="color: white"
*ngIf="!isMinimized" mat-icon-button (click)="minimize(true)">
[ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }"
style="color: white"
mat-icon-button
(click)="minimize(true)"
>
<mat-icon>remove</mat-icon> <mat-icon>remove</mat-icon>
</button> </button>
<button <button *ngIf="isMinimized" [ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }" style="color: white"
*ngIf="isMinimized" mat-icon-button (click)="minimize(false)">
[ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }"
style="color: white"
mat-icon-button
(click)="minimize(false)"
>
<mat-icon>web_asset</mat-icon> <mat-icon>web_asset</mat-icon>
</button> </button>
<button <button [ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }" style="color: white" mat-icon-button
[ngClass]="{ lightThemeConsoleHeader: isLightThemeEnabled }" (click)="close()">
style="color: white"
mat-icon-button
(click)="close()"
>
<mat-icon>close</mat-icon> <mat-icon>close</mat-icon>
</button> </button>
</div> </div>
<app-log-console <app-log-console [hidden]="!(selected.value === 0) || isMinimized" [server]="server" [project]="project">
[hidden]="!(selected.value === 0) || isMinimized" </app-log-console>
[server]="server"
[project]="project"
></app-log-console>
<div <div (mouseover)="disableScroll($event)" (mouseout)="enableScroll($event)" class="xterm-console"
(mouseover)="disableScroll($event)" [hidden]="isMinimized" *ngFor="let node of nodes; let index = index">
(mouseout)="enableScroll($event)" <app-web-console [hidden]="!(selected.value === index + 1)" [server]="server" [node]="nodes[index]">
class="xterm-console" </app-web-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> </div>

View File

@ -480,7 +480,6 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
}; };
this.projectws.onerror = (event: MessageEvent) => { this.projectws.onerror = (event: MessageEvent) => {
debugger
this.toasterService.error(`Connection to host lost. Error: ${event.data}`); this.toasterService.error(`Connection to host lost. Error: ${event.data}`);
}; };
} }