mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-09 11:31:15 +00:00
I resolved "#1287 Cannot add Qemu template manually"
This commit is contained in:
parent
f91a5f657f
commit
316fe735fc
@ -92,7 +92,8 @@ export class AddQemuVmTemplateComponent implements OnInit {
|
||||
const server_id = this.route.snapshot.paramMap.get('server_id');
|
||||
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;
|
||||
});
|
||||
@ -106,8 +107,9 @@ export class AddQemuVmTemplateComponent implements OnInit {
|
||||
this.qemuImages = qemuImages;
|
||||
});
|
||||
|
||||
this.consoleTypes = this.configurationService.getConsoleTypes();
|
||||
this.consoleTypes = this.configurationService.getConsoleTypes();}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
setServerType(serverType: string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user