mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-27 14:29:45 +00:00
Update http-console-new-tab-action.component.ts
This commit is contained in:
parent
3f0772c352
commit
f185762969
@ -23,7 +23,9 @@ export class HttpConsoleNewTabActionComponent implements OnInit {
|
||||
openConsole() {
|
||||
this.nodes.forEach(n => {
|
||||
if (n.status === 'started') {
|
||||
window.open(`${this.router.url}/nodes/${n.node_id}`);
|
||||
let url = this.router.url.split('/');
|
||||
let urlString = `/static/web-ui/${url[1]}/${url[2]}/${url[3]}/${url[4]}/nodes/${n.node_id}`
|
||||
window.open(urlString);
|
||||
} else {
|
||||
this.toasterService.error('To open console please start the node');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user