I resolved "#1287 Cannot add Qemu template manually"

This commit is contained in:
Sakshi Goel 2022-03-31 17:32:29 +05:30
parent f91a5f657f
commit 316fe735fc

View File

@ -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) {