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 5e6ce277..a07342f4 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 @@ -42,7 +42,7 @@ import { TemplateNameDialogComponent } from './template-name-dialog/template-nam ]), ], }) -export class NewTemplateDialogComponent implements OnInit { +export class NewTemplateDialogComponent implements OnInit { @Input() server: Server; @Input() project: Project; @@ -96,6 +96,7 @@ export class NewTemplateDialogComponent implements OnInit { ) {} ngOnInit() { + if(!this.server.authToken){ this.templateService.list(this.server).subscribe((templates) => { this.templates = templates; }); @@ -105,7 +106,6 @@ export class NewTemplateDialogComponent implements OnInit { if (compute.capabilities.platform === 'linux') this.isLinuxPlatform = true; }); }); - this.qemuService.getImages(this.server).subscribe((qemuImages) => { this.qemuImages = qemuImages; }); @@ -182,6 +182,7 @@ export class NewTemplateDialogComponent implements OnInit { this.uploaderImage.clearQueue(); }; } + } updateAppliances() { this.progressService.activate();