Set platform with first element in the list

This commit is contained in:
grossmj 2022-08-03 11:08:30 +02:00
parent 0bb4db78a4
commit 206d25d032
2 changed files with 1 additions and 4 deletions

View File

@ -106,14 +106,12 @@ export class AddQemuVmTemplateComponent implements OnInit {
this.qemuTemplate = qemuTemplate; this.qemuTemplate = qemuTemplate;
}); });
this.qemuService.getImages(this.controller).subscribe((qemuImages: QemuImage[]) => { this.qemuService.getImages(this.controller).subscribe((qemuImages: QemuImage[]) => {
this.qemuImages = qemuImages; this.qemuImages = qemuImages;
}); });
this.selectPlatform = this.configurationService.getPlatform(); this.selectPlatform = this.configurationService.getPlatform();
this.selectedPlatform = this.selectPlatform[0];
this.consoleTypes = this.configurationService.getConsoleTypes(); this.consoleTypes = this.configurationService.getConsoleTypes();
}); });

View File

@ -68,7 +68,6 @@ export class QemuVmTemplateDetailsComponent implements OnInit {
}); });
this.selectPlatform = this.configurationService.getPlatform(); this.selectPlatform = this.configurationService.getPlatform();
this.selectedPlatform = this.selectPlatform[0];
} }
getConfiguration() { getConfiguration() {