Skip to content

Commit

Permalink
Merge pull request #19199 from abpframework/blazor-GetEntitiesAsync
Browse files Browse the repository at this point in the history
Only `GetEntitiesAsync` on page 1.
  • Loading branch information
Sinan997 authored Mar 4, 2024
2 parents f7e0341 + b5a365f commit 5c77046
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,12 @@ protected virtual Task UpdateGetListInputAsync()

protected virtual async Task SearchEntitiesAsync()
{
var currentPage = CurrentPage;
CurrentPage = 1;

await GetEntitiesAsync();

if (currentPage == 1)
{
await GetEntitiesAsync();
}
await InvokeAsync(StateHasChanged);
}

Expand Down Expand Up @@ -596,12 +598,12 @@ private async ValueTask TrySetEntityActionsAsync()

await SetEntityActionsAsync();
}

protected virtual ValueTask SetEntityActionsAsync()
{
return ValueTask.CompletedTask;
}

private async ValueTask TrySetTableColumnsAsync()
{
if (IsDisposed)
Expand All @@ -614,7 +616,7 @@ private async ValueTask TrySetTableColumnsAsync()

protected virtual ValueTask SetTableColumnsAsync()
{

return ValueTask.CompletedTask;
}

Expand Down

0 comments on commit 5c77046

Please sign in to comment.