From 97d1bc7596d18713a7bee5661fe2a7f1865cbb85 Mon Sep 17 00:00:00 2001 From: Sakshi Goel Date: Mon, 4 Apr 2022 12:15:56 +0530 Subject: [PATCH] I resolved "#1287 Cannot add Qemu template manually" --- .../new-template-dialog/new-template-dialog.component.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts b/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts index a07342f4..8cea2cf5 100644 --- a/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts +++ b/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts @@ -131,10 +131,6 @@ export class NewTemplateDialogComponent implements OnInit { this.dataSource.paginator = this.paginator; }); - this.qemuService.getBinaries(this.server).subscribe((binaries) => { - this.qemuBinaries = binaries; - }); - this.uploader = new FileUploader({}); this.uploader.onAfterAddingFile = (file) => { file.withCredentials = false; @@ -182,6 +178,9 @@ export class NewTemplateDialogComponent implements OnInit { this.uploaderImage.clearQueue(); }; } + this.qemuService.getBinaries(this.server).subscribe((binaries) => { + this.qemuBinaries = binaries; + }); } updateAppliances() {