-
+
-
diff --git a/Wonky.Client/Pages/CustomerListPage.razor.cs b/Wonky.Client/Pages/CustomerListPage.razor.cs
index 507400ee..cfed320c 100644
--- a/Wonky.Client/Pages/CustomerListPage.razor.cs
+++ b/Wonky.Client/Pages/CustomerListPage.razor.cs
@@ -38,6 +38,7 @@ namespace Wonky.Client.Pages
private CompanyPagingParams _paging = new();
private Preferences _preferences { get; set; } = new();
private string _savedSearch { get; set; } = "";
+ private bool _includeFolded { get; set; }
protected override async Task OnInitializedAsync()
{
@@ -46,6 +47,7 @@ namespace Wonky.Client.Pages
_paging.OrderBy = _preferences.CompanySort;
_paging.SearchColumn = _preferences.CompanySearch;
_paging.PageSize = Convert.ToInt32(_preferences.PageSize);
+ _paging.HasFolded = _includeFolded ? 1 : 0;
// load saved search
_savedSearch = _preferences.CompanyFilterPhrase;
@@ -58,6 +60,14 @@ namespace Wonky.Client.Pages
await GetCompanies();
}
+ private async Task OnFoldedClick()
+ {
+ _includeFolded = !_includeFolded;
+ _companyList = new List
();
+ _paging.PageNumber = 1;
+ _paging.HasFolded = _includeFolded ? 1 : 0;
+ await GetCompanies();
+ }
private async Task SelectedPage(int page)
{
_companyList = new List();
diff --git a/Wonky.Client/Pages/Login.razor b/Wonky.Client/Pages/Login.razor
index 292c1d70..7081635a 100644
--- a/Wonky.Client/Pages/Login.razor
+++ b/Wonky.Client/Pages/Login.razor
@@ -37,22 +37,22 @@