mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-29 07:20:06 +00:00
I resolved "Cannot open new template dialog #1282"
This commit is contained in:
parent
48bb035b34
commit
6a09772459
@ -96,6 +96,7 @@ export class NewTemplateDialogComponent implements OnInit {
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
if(!this.server.authToken){
|
||||||
this.templateService.list(this.server).subscribe((templates) => {
|
this.templateService.list(this.server).subscribe((templates) => {
|
||||||
this.templates = templates;
|
this.templates = templates;
|
||||||
});
|
});
|
||||||
@ -105,7 +106,6 @@ export class NewTemplateDialogComponent implements OnInit {
|
|||||||
if (compute.capabilities.platform === 'linux') this.isLinuxPlatform = true;
|
if (compute.capabilities.platform === 'linux') this.isLinuxPlatform = true;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.qemuService.getImages(this.server).subscribe((qemuImages) => {
|
this.qemuService.getImages(this.server).subscribe((qemuImages) => {
|
||||||
this.qemuImages = qemuImages;
|
this.qemuImages = qemuImages;
|
||||||
});
|
});
|
||||||
@ -182,6 +182,7 @@ export class NewTemplateDialogComponent implements OnInit {
|
|||||||
this.uploaderImage.clearQueue();
|
this.uploaderImage.clearQueue();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
updateAppliances() {
|
updateAppliances() {
|
||||||
this.progressService.activate();
|
this.progressService.activate();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user