Skip to content

Commit

Permalink
Merge pull request #634 from sipcapture/upgrade-angular
Browse files Browse the repository at this point in the history
fix: HEP-LOG parser on FLOW dialog-details
  • Loading branch information
RFbkak37y3kIY authored May 10, 2024
2 parents 0aa3351 + 0f5b72a commit cedf8ca
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 184 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,11 @@ export class TabFlowComponent
item.description,
Object.assign({}, item.source_data),
];
row.raw_source =
item.source_data?.item?.message ||
`${item.info_date} ${item.description} ${SDPbuffer}`;
if (!row.raw_source) {
row.raw_source =
item.source_data?.item?.message ||
`${item.info_date} ${item.description} ${SDPbuffer}`;
}
row.id = `(${item.typeItem}) ${item.description}`;

break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
</app-webshark>
<ng-template #baseContainer>
<mat-tab-group class="message-container" #matTabGroup (selectedTabChange)="onSelectedTab()">
<mat-tab label="Message" *ngIf="raw" style="padding: 1rem;">
<mat-tab label="Message" *ngIf="raw || raw_hep_log" style="padding: 1rem;">

<div class="time-label">{{ timeLabel }}</div>
<ngx-json-viewer *ngIf="raw_isJSON" [json]="raw" [expanded]="true"></ngx-json-viewer>

<div [innerHTML]="raw | safeHtml" class="raw-json" *ngIf="!raw_isJSON && type !== 'LOG'"></div>
<pre *ngIf="!raw_isJSON && type === 'LOG'" class="raw-json">{{raw}}</pre>
<pre *ngIf="!raw_isJSON && type === 'LOG'" class="raw-json">{{raw_hep_log}}</pre>
</mat-tab>

<mat-tab label="SIP" *ngIf="pt?.sip" class="parsed-data">
Expand Down
Loading

0 comments on commit cedf8ca

Please sign in to comment.