From 3d23eeb4ec8f3e66d86653a5b2aa7673a83bd278 Mon Sep 17 00:00:00 2001 From: Aravindhan Alagesan Date: Tue, 31 Oct 2023 18:23:57 +0530 Subject: [PATCH] Capture the missed event logs in view history page Signed-off-by: Aravindhan Alagesan --- .../uinservices/viewhistory/viewhistory.component.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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) {