Skip to content

Commit 13bee42

Browse files
committed
feat: remove duplicate alert badge fields and clean up HTML structure
Signed-off-by: Manuel Abascal <mjabascal10@gmail.com>
1 parent 948149e commit 13bee42

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

frontend/src/app/data-management/alert-management/shared/components/alert-entity-display/alert-entity-display.component.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@
2929
<div *ngIf="isInclude(field.field, [ALERT_TARGET_GEOLOCATION_ASO_FIELD, ALERT_ADVERSARY_GEOLOCATION_ASO_FIELD])">
3030
<app-alert-badge-field [tooltip]="'Aso'" [iconClass]="'icon-briefcase'" [value]="getValue(field.field)"></app-alert-badge-field>
3131
</div>
32-
<div *ngIf="isInclude(field.field, [ALERT_TARGET_GEOLOCATION_ASO_FIELD, ALERT_ADVERSARY_GEOLOCATION_ASO_FIELD])">
33-
<app-alert-badge-field [tooltip]="'Aso'" [iconClass]="'icon-briefcase'" [value]="getValue(field.field)"></app-alert-badge-field>
34-
</div>
35-
<div *ngIf="isInclude(field.field, [ALERT_TARGET_GEOLOCATION_ASO_FIELD, ALERT_ADVERSARY_GEOLOCATION_ASO_FIELD])">
36-
<app-alert-badge-field [tooltip]="'Aso'" [iconClass]="'icon-briefcase'" [value]="getValue(field.field)"></app-alert-badge-field>
37-
</div>
3832
<app-alert-ip *ngIf="isInclude(field.field, [ALERT_TARGET_IP_FIELD ,ALERT_ADVERSARY_IP_FIELD])" [alert]="alert" [type]="type"></app-alert-ip>
3933
</ng-container>
4034
</div>

frontend/src/app/data-management/alert-management/shared/components/data-field-render/data-field-render.component.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[dataType]="dataType"
77
[showDrop]="false"
88
[statusField]="STATUS_FIELD">
9-
</app-alert-status>
9+
</app-alert-status>
1010

1111
<app-alert-action-select *ngIf="!isEcho"
1212
[alert]="data"
@@ -18,9 +18,6 @@
1818
</app-alert-action-select>
1919
</ng-container>
2020

21-
22-
23-
2421
<ng-content *ngSwitchCase="ALERT_ECHOES_FIELD" select="[echoes]"></ng-content>
2522
<app-alert-ip *ngSwitchCase="ALERT_TARGET_IP_FIELD" [alert]="data" [type]="'target'"></app-alert-ip>
2623
<app-alert-ip *ngSwitchCase="ALERT_ADVERSARY_IP_FIELD" [alert]="data" [type]="'adversary'"></app-alert-ip>

0 commit comments

Comments
 (0)