From ef2791ffd81ffce5040b54dace2cf022a8d7cd6d Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 18 Jun 2026 19:56:55 -0400 Subject: [PATCH] refactor(centralui): ConfigurationAuditLog adopts OffsetPager + DateTimeRangeFilter (T35e) --- .../Pages/Audit/ConfigurationAuditLog.razor | 31 ++++--------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Audit/ConfigurationAuditLog.razor b/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Audit/ConfigurationAuditLog.razor index 50de2e71..19690234 100644 --- a/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Audit/ConfigurationAuditLog.razor +++ b/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Audit/ConfigurationAuditLog.razor @@ -58,21 +58,10 @@ @bind="_filterAction" placeholder="e.g. Create" /> -
- - -
-
- - +
+
- -
-
+ } @if (_modalEntry != null) @@ -238,7 +221,6 @@ private ToastNotification _toast = default!; - private int TotalPages => _pageSize > 0 ? Math.Max(1, (_totalCount + _pageSize - 1) / _pageSize) : 1; private bool HasMore => _page * _pageSize < _totalCount; // Tracks the BundleImportId we last fetched against so a re-render with the @@ -310,8 +292,7 @@ await FetchPage(); } - private async Task PrevPage() { _page--; await FetchPage(); } - private async Task NextPage() { _page++; await FetchPage(); } + private async Task OnPageChanged(int page) { _page = page; await FetchPage(); } private async Task FetchPage() {