Skip to content

Commit 75485e2

Browse files
committed
feat(alert-view): enhance pagination component and update items per page logic
1 parent 7020b8f commit 75485e2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ <h5 class="card-title mb-0 text-uppercase label-header">
154154
[pageSize]="itemsPerPage"
155155
[rotate]="true"
156156
[size]="'sm'"></ngb-pagination>
157-
<app-utm-items-per-page (itemsInPage)="onItemsPerPageChange($event)"
157+
<app-utm-items-per-page [itemsAmount]="itemsPerPage"
158+
(itemsInPage)="onItemsPerPageChange($event)"
158159
class="ml-3">
159160
</app-utm-items-per-page>
160161
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class AlertViewComponent implements OnInit, OnDestroy {
104104
viewAlertDetail: boolean;
105105
totalItems: any;
106106
page = 1;
107-
itemsPerPage = ITEMS_PER_PAGE;
107+
itemsPerPage = ITEMS_PER_PAGE * 4;
108108
filters: ElasticFilterType[] = [
109109
{field: ALERT_STATUS_FIELD_AUTO, operator: ElasticOperatorsEnum.IS_NOT, value: AUTOMATIC_REVIEW},
110110
{field: ALERT_TAGS_FIELD, operator: ElasticOperatorsEnum.IS_NOT, value: FALSE_POSITIVE_OBJECT.tagName},

0 commit comments

Comments
 (0)