mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-05 16:51:35 +00:00
Opening more than 1 console with one click in console widget
This commit is contained in:
parent
abdd739f06
commit
9fd34e8253
@ -25,9 +25,10 @@ export class HttpConsoleActionComponent implements OnInit {
|
|||||||
this.nodes.forEach((n) => {
|
this.nodes.forEach((n) => {
|
||||||
if (n.status === 'started') {
|
if (n.status === 'started') {
|
||||||
this.mapSettingsService.logConsoleSubject.next(true);
|
this.mapSettingsService.logConsoleSubject.next(true);
|
||||||
this.consoleService.openConsoleForNode(n);
|
// this timeout is required due to xterm.js implementation
|
||||||
|
setTimeout(() => { this.consoleService.openConsoleForNode(n); }, 500);
|
||||||
} else {
|
} else {
|
||||||
this.toasterService.error('To open console please start the node');
|
this.toasterService.error('To open console please start the node ' + n.name);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<app-stop-node-action *ngIf="nodes.length" [server]="server" [nodes]="nodes"></app-stop-node-action>
|
<app-stop-node-action *ngIf="nodes.length" [server]="server" [nodes]="nodes"></app-stop-node-action>
|
||||||
<app-reload-node-action *ngIf="nodes.length" [server]="server" [nodes]="nodes"></app-reload-node-action>
|
<app-reload-node-action *ngIf="nodes.length" [server]="server" [nodes]="nodes"></app-reload-node-action>
|
||||||
<app-http-console-action
|
<app-http-console-action
|
||||||
*ngIf="!projectService.isReadOnly(project) && nodes.length === 1"
|
*ngIf="!projectService.isReadOnly(project) && nodes.length > 0"
|
||||||
[server]="server"
|
[server]="server"
|
||||||
[nodes]="nodes"
|
[nodes]="nodes"
|
||||||
></app-http-console-action>
|
></app-http-console-action>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user