mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-22 06:17:47 +00:00
I resolved "#1287 cannot open Qemu template manually including adding a Qemu template during step3.
This commit is contained in:
parent
316fe735fc
commit
8adad9c13f
@ -93,7 +93,6 @@ export class AddQemuVmTemplateComponent implements OnInit {
|
||||
this.serverService.get(parseInt(server_id, 10)).then((server: Server) => {
|
||||
this.server = server;
|
||||
|
||||
if(!this.server.authToken){
|
||||
this.templateMocksService.getQemuTemplate().subscribe((qemuTemplate: QemuTemplate) => {
|
||||
this.qemuTemplate = qemuTemplate;
|
||||
});
|
||||
@ -103,11 +102,13 @@ export class AddQemuVmTemplateComponent implements OnInit {
|
||||
if (this.qemuBinaries[0]) this.selectedBinary = this.qemuBinaries[0];
|
||||
});
|
||||
|
||||
if (!this.server.authToken) {
|
||||
this.qemuService.getImages(server).subscribe((qemuImages: QemuImage[]) => {
|
||||
this.qemuImages = qemuImages;
|
||||
});
|
||||
}
|
||||
|
||||
this.consoleTypes = this.configurationService.getConsoleTypes();}
|
||||
this.consoleTypes = this.configurationService.getConsoleTypes();
|
||||
});
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user