mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-29 09:18:50 +00:00
Update console-device-action-browser.component.ts
This commit is contained in:
parent
b2cb7804de
commit
0ca1c02d10
@ -33,12 +33,12 @@ export class ConsoleDeviceActionBrowserComponent {
|
|||||||
this.node.console_host = this.server.host;
|
this.node.console_host = this.server.host;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.node.console_type === "telnet") {
|
if (this.node.console_type === "telnet" || this.node.console_type === "vnc" || this.node.console_type === "spice") {
|
||||||
location.assign(`gns3+telnet://${this.node.console_host}:${this.node.console}?name=${this.node.name}&project_id=${this.node.project_id}&node_id=${this.node.node_id}`);
|
try {
|
||||||
} else if (this.node.console_type === "vnc") {
|
location.assign(`gns3+${this.node.console_type}://${this.node.console_host}:${this.node.console}?name=${this.node.name}&project_id=${this.node.project_id}&node_id=${this.node.node_id}`);
|
||||||
location.assign(`gns3+vnc://${this.node.console_host}:${this.node.console}?name=${this.node.name}&project_id=${this.node.project_id}&node_id=${this.node.node_id}`);
|
} catch (e) {
|
||||||
} else if(this.node.console_type === "spice") {
|
this.toasterService.error(e);
|
||||||
location.assign(`gns3+spice://${this.node.console_host}:${this.node.console}?name=${this.node.name}&project_id=${this.node.project_id}&node_id=${this.node.node_id}`);
|
}
|
||||||
} else {
|
} else {
|
||||||
this.toasterService.error("Supported console types: telnet, vnc, spice.");
|
this.toasterService.error("Supported console types: telnet, vnc, spice.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user