mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-23 08:55:32 +00:00
Support for starting wireshark
This commit is contained in:
@ -0,0 +1,4 @@
|
||||
<button mat-menu-item *ngIf="link.capturing" (click)="startCapture()">
|
||||
<mat-icon>search</mat-icon>
|
||||
<span>Start Wireshark</span>
|
||||
</button>
|
@ -0,0 +1,24 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { Server } from '../../../../../models/server';
|
||||
import { Link } from '../../../../../models/link';
|
||||
import { Project } from '../../../../../models/project';
|
||||
import { PacketCaptureService } from '../../../../../services/packet-capture.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-start-capture-on-started-link-action',
|
||||
templateUrl: './start-capture-on-started-link.component.html'
|
||||
})
|
||||
export class StartCaptureOnStartedLinkActionComponent {
|
||||
@Input() server: Server;
|
||||
@Input() project: Project;
|
||||
@Input() link: Link;
|
||||
|
||||
constructor(
|
||||
private packetCaptureService: PacketCaptureService
|
||||
) {}
|
||||
|
||||
startCapture() {
|
||||
var splittedFileName = this.link.capture_file_name.split('.');
|
||||
this.packetCaptureService.startCapture(this.server, this.project, this.link, splittedFileName[0]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user