Update new-template-dialog.component.ts

This commit is contained in:
piotrpekala7 2020-06-22 15:27:09 +02:00
parent b0c331d054
commit fc6a5671fb

View File

@ -332,6 +332,10 @@ export class NewTemplateDialogComponent implements OnInit {
}
createQemuTemplate(image: Image) {
if (!this.selectedBinary) {
this.toasterService.error('Please select QEMU binary first');
return;
}
let qemuTemplate: QemuTemplate = new QemuTemplate();
qemuTemplate.name = this.applianceToInstall.name;
qemuTemplate.ram = this.applianceToInstall.qemu.ram;