diff --git a/resident-ui/src/app/feature/uinservices/viewhistory/viewhistory.component.ts b/resident-ui/src/app/feature/uinservices/viewhistory/viewhistory.component.ts index 4f9723ef..2b73aa59 100644 --- a/resident-ui/src/app/feature/uinservices/viewhistory/viewhistory.component.ts +++ b/resident-ui/src/app/feature/uinservices/viewhistory/viewhistory.component.ts @@ -374,6 +374,12 @@ export class ViewhistoryComponent implements OnInit, OnDestroy { capturePageValue(pageEvent: any) { let searchParam = "", self = this; + if(pageEvent.pageIndex > this.pageIndex) { + this.auditService.audit('RP-011', 'View history', 'RP-View history', 'View history', 'User clicks on next page in pagination'); + } + if(pageEvent.pageSize != this.pageSize){ + this.auditService.audit('RP-012', 'View history', 'RP-View history', 'View history', 'User chooses the number of items to be shown on each page from drop-down'); + } this.controlTypes.forEach(controlType => { if (self[controlType]) { if (searchParam) {