Skip to content

Commit

Permalink
fix: Opening a 'new' pcap #9
Browse files Browse the repository at this point in the history
  • Loading branch information
RFbkak37y3kIY committed Dec 16, 2024
1 parent a7a8925 commit bb3f8ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/app/components/controls/menu-stat/menu-stat.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Component, OnInit, ChangeDetectorRef } from '@angular/core';
import { WebSharkDataService } from '@app/services/web-shark-data.service';
import { ModalResizableService } from '../modal-resizable/modal-resizable.service';
import { WiregasmService } from '@app/services/wiregasm.service';
import { Router } from '@angular/router';

@Component({
selector: 'app-menu-stat',
Expand All @@ -14,7 +15,8 @@ export class MenuStatComponent implements OnInit {
constructor(
private webSharkDataService: WiregasmService,
private modalResizableService: ModalResizableService,
private cdr: ChangeDetectorRef
private cdr: ChangeDetectorRef,
private router: Router
) { }

async ngOnInit() {
Expand All @@ -37,7 +39,7 @@ export class MenuStatComponent implements OnInit {
} = info;

const menuCollection = [
{ name: 'Endpoints', children: [...convs] },
{ name: 'Misc', children: [...convs] },
{ name: 'Response Time', children: [...srt, ...rtd] },
{ name: 'Statistics', children: [...stats, ...nstat] },
{ name: 'Export Objects', children: [...eo] },
Expand Down Expand Up @@ -67,4 +69,7 @@ export class MenuStatComponent implements OnInit {
console.error(err);
}
}
gotoUploadPage() {
location.reload();
}
}
4 changes: 2 additions & 2 deletions src/app/components/controls/webshark/webshark.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div style="min-width: 200px; margin-bottom: 1rem" [style.height]="true || isKIOSK ? '60vh' : '100px'">
<pcap-uploader [autoUpload]="true"></pcap-uploader>
</div>
<mat-list *ngIf="false && !isKIOSK">
<!-- <mat-list *ngIf="false && !isKIOSK">
<h1 mat-subheader>Files</h1>
<div *ngFor="let note of fileList" class="list-item-hover" (click)="onClickFile(note.name)">
<mat-list-item>
Expand All @@ -22,7 +22,7 @@ <h1 mat-subheader>Files</h1>
<div mat-line>{{ note.size }} bytes</div>
</mat-list-item>
</div>
</mat-list>
</mat-list> -->
</div>
</div>
<div class="flex-container" style="flex: 1;" *ngIf="!(!(dataTree.length > 0) && !(detailsTable.length > 0))">
Expand Down

0 comments on commit bb3f8ad

Please sign in to comment.