mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-20 15:40:29 +00:00
I resolved "#1287 Cannot add Qemu template manually"
This commit is contained in:
@ -93,6 +93,7 @@ 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;
|
||||
});
|
||||
@ -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) {
|
||||
|
Reference in New Issue
Block a user