From d4ea702a6afb9b5e0d823584445ae9751d263f18 Mon Sep 17 00:00:00 2001 From: Rajnikant Lodhi Date: Tue, 9 Aug 2022 10:09:34 +0530 Subject: [PATCH] Resolve this issue: Cannot change network card type on Qemu VM templates from Web-UI --- .../export-portable-project.component.ts | 2 +- .../custom-adapters-table.component.html | 4 +- .../qemu-vm-template-details.component.html | 2 +- .../services/qemu-configuration.service.ts | 126 +++++++++++------- 4 files changed, 82 insertions(+), 52 deletions(-) diff --git a/src/app/components/export-portable-project/export-portable-project.component.ts b/src/app/components/export-portable-project/export-portable-project.component.ts index 3f348646..46f21630 100644 --- a/src/app/components/export-portable-project/export-portable-project.component.ts +++ b/src/app/components/export-portable-project/export-portable-project.component.ts @@ -32,7 +32,7 @@ export class ExportPortableProjectComponent implements OnInit { async ngOnInit() { this.controller = this.data.controllerDetails; this.project = this.data.projectDetails; - this.fileName = this.project.name + '.gns3project'; + if(this.project){ this.fileName = this.project.name + '.gns3project';} await this.formControls(); this.compression_methods = this.projectService.getCompression(); this.compression_level = this.projectService.getCompressionLevel(); diff --git a/src/app/components/preferences/common/custom-adapters-table/custom-adapters-table.component.html b/src/app/components/preferences/common/custom-adapters-table/custom-adapters-table.component.html index 7fecbe05..d1d000a6 100644 --- a/src/app/components/preferences/common/custom-adapters-table/custom-adapters-table.component.html +++ b/src/app/components/preferences/common/custom-adapters-table/custom-adapters-table.component.html @@ -13,8 +13,8 @@ Adapter type - - {{ type }} + + {{ type.name }} diff --git a/src/app/components/preferences/qemu/qemu-vm-template-details/qemu-vm-template-details.component.html b/src/app/components/preferences/qemu/qemu-vm-template-details/qemu-vm-template-details.component.html index 76d1b934..dc387608 100644 --- a/src/app/components/preferences/qemu/qemu-vm-template-details/qemu-vm-template-details.component.html +++ b/src/app/components/preferences/qemu/qemu-vm-template-details/qemu-vm-template-details.component.html @@ -194,7 +194,7 @@ - {{ type[1] }} ({{ type[0] }}) + {{type.name}}