Trial - boosting prospect grid loading performance
This commit is contained in:
@@ -29,13 +29,25 @@
|
||||
<ProspectSortControl @bind-CurrentSort="CurrentSort" StorageKey="@StorageKeys.SortProspects" OnSortChanged="StateHasChanged" Filter="Filter" FilterChanged="FilterChangedAsync" StateFilter="ProspectStateFilter.OnBoarding" />
|
||||
|
||||
@{
|
||||
var filterList = ProspectList.ApplyFilter(Filter);
|
||||
var sortList = filterList.ApplySort(CurrentSort);
|
||||
var filtered = ProspectList.ApplyFilter(Filter);
|
||||
var sortList = filtered.ApplySort(CurrentSort);
|
||||
}
|
||||
|
||||
|
||||
<ProspectGrid
|
||||
Prospects="sortList"
|
||||
OnDataChanged="@LoadProspects"
|
||||
StateFilter="ProspectStateFilter.OnBoarding">
|
||||
</ProspectGrid>
|
||||
@if (IsLoadingProspects)
|
||||
{
|
||||
<div class="d-flex justify-content-center align-items-center py-5 text-muted">
|
||||
<span class="me-2"><i class="fa-solid fa-spinner fa-spin"></i></span>
|
||||
Lade Einarbeitungen...
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<ProspectGrid
|
||||
Prospects="sortList"
|
||||
OnDataChanged="@LoadProspects"
|
||||
OnLoadMore="@LoadMoreProspects"
|
||||
IsLoadingMore="IsLoadingMoreProspects"
|
||||
HasMore="HasMoreProspects"
|
||||
StateFilter="ProspectStateFilter.OnBoarding">
|
||||
</ProspectGrid>
|
||||
}
|
||||
Reference in New Issue
Block a user