Skip to content

Commit 6002ad7

Browse files
committed
fix: clean up alert detail view logic and HTML formatting
Signed-off-by: Manuel Abascal <mjabascal10@gmail.com>
1 parent ad0da80 commit 6002ad7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

frontend/src/app/data-management/alert-management/alert-view/alert-view.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ <h6 class="card-title text-blue-800 font-weight-light">
219219
<ng-container *ngFor="let td of fields">
220220
<td *ngIf="td.visible"
221221
[ngClass]="{'min-width': td.field === ALERT_ADVERSARY_FIELD || td.field === ALERT_TARGET_FIELD}"
222-
(click)="viewDetailAlert(alert, td)"
223-
>
222+
(click)="viewDetailAlert(alert, td)">
224223

225224
<app-data-field-render [data]="alert"
226225
[tags]="tags"

frontend/src/app/data-management/alert-management/alert-view/alert-view.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,10 @@ export class AlertViewComponent implements OnInit, OnDestroy {
479479

480480
viewDetailAlert(alert: UtmAlertType, td: UtmFieldType) {
481481
if (td.field !== ALERT_STATUS_FIELD && td.field !== ALERT_ECHOES_FIELD) {
482-
if (alert.echoes > 0) {
482+
/*if (alert.echoes > 0) {
483483
alert.expanded = true;
484484
this.loadChildrenAlerts(alert);
485-
}
485+
}*/
486486
this.alertDetail = alert;
487487
this.viewAlertDetail = true;
488488
}

0 commit comments

Comments
 (0)