From 33a724e6f6f320d4ec2da8e20d859d74c9f2d734 Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Wed, 21 Feb 2024 17:29:03 +0200 Subject: [PATCH 1/2] RED-8463 - Date filter in audit log not filtering correctly --- .../modules/admin/screens/audit/audit-screen.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.ts index 0fd7ed936..012371425 100644 --- a/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.ts @@ -104,7 +104,12 @@ export class AuditScreenComponent extends ListingComponent implements OnI const from = this.form.get('from').value; let to = this.form.get('to').value; if (to) { - to = to.clone().add(1, 'd'); + const hoursLeft = new Date(to).getHours(); + const minutesLeft = new Date(to).getMinutes(); + to = to + .clone() + .add(24 - hoursLeft - 1, 'h') + .add(60 - minutesLeft - 1); } const logsRequestBody: IAuditSearchRequest = { pageSize: PAGE_SIZE, From 61e612374984b65278ed57d0ecf2e130498872cc Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Wed, 21 Feb 2024 17:29:34 +0200 Subject: [PATCH 2/2] RED-8186 - Delete standard view button help mode icon and link --- .../view-switch/view-switch.component.html | 2 +- .../components/view-switch/view-switch.component.ts | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.html b/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.html index f07a84b74..621ee8abd 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.html @@ -1,6 +1,6 @@