I resolved "#1287 Cannot add Qemu template manually"

This commit is contained in:
Sakshi Goel 2022-04-04 12:15:56 +05:30
parent 8adad9c13f
commit 97d1bc7596

View File

@ -131,10 +131,6 @@ export class NewTemplateDialogComponent implements OnInit {
this.dataSource.paginator = this.paginator; this.dataSource.paginator = this.paginator;
}); });
this.qemuService.getBinaries(this.server).subscribe((binaries) => {
this.qemuBinaries = binaries;
});
this.uploader = new FileUploader({}); this.uploader = new FileUploader({});
this.uploader.onAfterAddingFile = (file) => { this.uploader.onAfterAddingFile = (file) => {
file.withCredentials = false; file.withCredentials = false;
@ -182,6 +178,9 @@ export class NewTemplateDialogComponent implements OnInit {
this.uploaderImage.clearQueue(); this.uploaderImage.clearQueue();
}; };
} }
this.qemuService.getBinaries(this.server).subscribe((binaries) => {
this.qemuBinaries = binaries;
});
} }
updateAppliances() { updateAppliances() {