mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-03 01:02:54 +00:00
22 lines
686 B
TypeScript
22 lines
686 B
TypeScript
import { Component, Input, OnInit } from '@angular/core';
|
|
import { NodeConsoleService } from '../../../../../services/nodeConsole.service';
|
|
import { Node } from '../../../../../cartography/models/node';
|
|
import { Server } from '../../../../../models/server';
|
|
|
|
@Component({
|
|
selector: 'app-http-console-new-tab-action',
|
|
templateUrl: './http-console-new-tab-action.component.html',
|
|
})
|
|
export class HttpConsoleNewTabActionComponent implements OnInit {
|
|
@Input() server: Server;
|
|
@Input() nodes: Node[];
|
|
|
|
constructor(private nodeConsoleService: NodeConsoleService) {}
|
|
|
|
ngOnInit() {}
|
|
|
|
openConsole() {
|
|
this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodes);
|
|
}
|
|
}
|