From e6bc4f59dcf676b82a5968f3f3a481d04635ee45 Mon Sep 17 00:00:00 2001 From: Frede Hundewadt Date: Wed, 26 Oct 2022 08:35:10 +0200 Subject: [PATCH] added sort col and paging to price list popup --- Wonky.Client/Shared/PriceListModal.razor | 11 ++++++++--- Wonky.Client/Shared/PriceListModal.razor.cs | 6 ++++++ Wonky.Client/wwwroot/appsettings.json | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/Wonky.Client/Shared/PriceListModal.razor b/Wonky.Client/Shared/PriceListModal.razor index 32160d5f..2dc21fc8 100644 --- a/Wonky.Client/Shared/PriceListModal.razor +++ b/Wonky.Client/Shared/PriceListModal.razor @@ -32,13 +32,18 @@
- @*
*@ - @* *@ - @*
*@ +
+ +
+
+
+ +
+
@if (_items.Any()) diff --git a/Wonky.Client/Shared/PriceListModal.razor.cs b/Wonky.Client/Shared/PriceListModal.razor.cs index 7e3028a8..8f9c9cdb 100644 --- a/Wonky.Client/Shared/PriceListModal.razor.cs +++ b/Wonky.Client/Shared/PriceListModal.razor.cs @@ -57,6 +57,12 @@ public partial class PriceListModal : IDisposable Hide(); } + private async Task SelectedPage(int page) + { + _items = new List(); + _paging.PageNumber = page; + await GetSalesItems(); + } private async Task SetSearchPhrase(string searchTerm) { _items = new List(); diff --git a/Wonky.Client/wwwroot/appsettings.json b/Wonky.Client/wwwroot/appsettings.json index 2e15d687..f4dd6419 100644 --- a/Wonky.Client/wwwroot/appsettings.json +++ b/Wonky.Client/wwwroot/appsettings.json @@ -1,7 +1,7 @@ { "appInfo": { "name": "Wonky Client", - "version": "0.30.2", + "version": "0.30.3", "rc": false, "sandBox": false, "image": "grumpy-coder.png"