cleanup params page

This commit is contained in:
Samuele Locatelli
2022-09-15 18:48:04 +02:00
parent 0ec3a4c31a
commit 25f274d4d6
+2 -2
View File
@@ -24,13 +24,13 @@ namespace MP.SPEC.Pages
protected void ForceReload(int newNum)
{
numRecord = newNum;
//currFilter.LiveUpdate = (currPage == 1);
}
protected void ForceReloadPage(int newNum)
{
currPage = newNum;
currFilter.LiveUpdate = (currPage == 1);
StateHasChanged();
}
protected override async Task OnInitializedAsync()
@@ -40,6 +40,7 @@ namespace MP.SPEC.Pages
MsgService.ShowSearch = false;
// resetto search
MsgService.SearchVal = "";
currFilter.CurrPage = 1;
currFilter.LiveUpdate = (currPage == 1);
await Task.Delay(1);
isLoading = false;
@@ -108,7 +109,6 @@ namespace MP.SPEC.Pages
{
currFilter.LiveUpdate = (currPage == 1);
}
//currPage = newParams.CurrPage > 0 ? newParams.CurrPage : 1;
await Task.Delay(1);
await InvokeAsync(() => StateHasChanged());
isLoading = false;