mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-05 18:49:54 +00:00
Remove QEMU binaries code from add and edit qemu template.
This commit is contained in:
parent
a1163f0274
commit
939e4dfd5b
@ -65,7 +65,7 @@ export class AddQemuVmTemplateComponent implements OnInit {
|
||||
});
|
||||
|
||||
this.memoryForm = this.formBuilder.group({
|
||||
ramMemory: new FormControl('', Validators.required),
|
||||
ramMemory: new FormControl('256', Validators.required),
|
||||
});
|
||||
|
||||
this.diskForm = this.formBuilder.group({
|
||||
|
@ -54,6 +54,13 @@
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field class="form-field">
|
||||
<mat-select placeholder="Platform" [(ngModel)]="qemuTemplate.platform">
|
||||
<mat-option *ngFor="let platform of selectPlatform" [value]="platform">
|
||||
{{ platform }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field class="form-field">
|
||||
<input matInput type="number" [(ngModel)]="qemuTemplate.ram" placeholder="RAM" />
|
||||
<span matSuffix>MB</span>
|
||||
@ -61,13 +68,13 @@
|
||||
<mat-form-field class="form-field">
|
||||
<input matInput type="number" [(ngModel)]="qemuTemplate.cpus" placeholder="vCPUs" />
|
||||
</mat-form-field>
|
||||
<mat-form-field class="form-field">
|
||||
<!-- <mat-form-field class="form-field">
|
||||
<mat-select placeholder="Qemu binary" [(ngModel)]="qemuTemplate.qemu_path">
|
||||
<mat-option *ngFor="let binary of binaries" [value]="binary.path">
|
||||
{{ binary.path }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</mat-form-field> -->
|
||||
<mat-form-field class="form-field">
|
||||
<mat-select placeholder="Boot priority" [(ngModel)]="qemuTemplate.boot_priority">
|
||||
<mat-option *ngFor="let priority of bootPriorities" [value]="priority[1]">
|
||||
|
@ -32,6 +32,9 @@ export class QemuVmTemplateDetailsComponent implements OnInit {
|
||||
isConfiguratorOpened: boolean = false;
|
||||
displayedColumns: string[] = ['adapter_number', 'port_name', 'adapter_type', 'actions'];
|
||||
generalSettingsForm: FormGroup;
|
||||
selectPlatform: string[] = [];
|
||||
selectedPlatform: string;
|
||||
|
||||
|
||||
@ViewChild('customAdaptersConfigurator')
|
||||
customAdaptersConfigurator: CustomAdaptersComponent;
|
||||
@ -68,6 +71,9 @@ export class QemuVmTemplateDetailsComponent implements OnInit {
|
||||
// });
|
||||
});
|
||||
});
|
||||
|
||||
this.selectPlatform = this.configurationService.getPlatform();
|
||||
this.selectedPlatform = this.selectPlatform[0];
|
||||
}
|
||||
|
||||
getConfiguration() {
|
||||
|
@ -1,7 +1,20 @@
|
||||
<div class="content" [ngClass]="{ shadowed: isSymbolSelectionOpened }">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<h1 class="col">VPCS device configuration</h1>
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
class="top-button"
|
||||
*ngIf="controller"
|
||||
class="cancel-button"
|
||||
mat-button
|
||||
(click)="goBack()"
|
||||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">VPCS device configuration</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content" *ngIf="vpcsTemplate">
|
||||
|
@ -25,13 +25,13 @@
|
||||
<mat-form-field class="form-field">
|
||||
<input matInput type="number" [(ngModel)]="node.properties.cpus" placeholder="vCPUs" />
|
||||
</mat-form-field>
|
||||
<mat-form-field class="form-field">
|
||||
<!-- <mat-form-field class="form-field">
|
||||
<mat-select placeholder="Qemu binary" [(ngModel)]="node.properties.qemu_path">
|
||||
<mat-option *ngFor="let binary of binaries" [value]="binary.path">
|
||||
{{ binary.path }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</mat-form-field> -->
|
||||
<mat-form-field class="form-field">
|
||||
<mat-select placeholder="Boot priority" [(ngModel)]="node.properties.boot_priority">
|
||||
<mat-option *ngFor="let priority of bootPriorities" [value]="priority[1]">
|
||||
|
Loading…
x
Reference in New Issue
Block a user