From 206d25d032d698f5f6b5c274074ba0e4b8498c2b Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 3 Aug 2022 11:08:30 +0200 Subject: [PATCH] Set platform with first element in the list --- .../add-qemu-vm-template/add-qemu-vm-template.component.ts | 4 +--- .../qemu-vm-template-details.component.ts | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/components/preferences/qemu/add-qemu-vm-template/add-qemu-vm-template.component.ts b/src/app/components/preferences/qemu/add-qemu-vm-template/add-qemu-vm-template.component.ts index 853c4840..2c561c9d 100644 --- a/src/app/components/preferences/qemu/add-qemu-vm-template/add-qemu-vm-template.component.ts +++ b/src/app/components/preferences/qemu/add-qemu-vm-template/add-qemu-vm-template.component.ts @@ -106,14 +106,12 @@ export class AddQemuVmTemplateComponent implements OnInit { this.qemuTemplate = qemuTemplate; }); - - - this.qemuService.getImages(this.controller).subscribe((qemuImages: QemuImage[]) => { this.qemuImages = qemuImages; }); this.selectPlatform = this.configurationService.getPlatform(); + this.selectedPlatform = this.selectPlatform[0]; this.consoleTypes = this.configurationService.getConsoleTypes(); }); diff --git a/src/app/components/preferences/qemu/qemu-vm-template-details/qemu-vm-template-details.component.ts b/src/app/components/preferences/qemu/qemu-vm-template-details/qemu-vm-template-details.component.ts index b7c13400..41fd5e31 100644 --- a/src/app/components/preferences/qemu/qemu-vm-template-details/qemu-vm-template-details.component.ts +++ b/src/app/components/preferences/qemu/qemu-vm-template-details/qemu-vm-template-details.component.ts @@ -68,7 +68,6 @@ export class QemuVmTemplateDetailsComponent implements OnInit { }); this.selectPlatform = this.configurationService.getPlatform(); - this.selectedPlatform = this.selectPlatform[0]; } getConfiguration() {