Files
FoodsharingOnboarding/FoodsharingSiegen.Server/Pages/ProspectsDone.razor
Andre Beging aadf88db2b Refactor prospect filtering to support state-specific filters.
Introduced a `StateFilter` parameter to `ProspectFilterControl` to enable filtering by specific prospect states. Updated related pages to utilize the new parameter and adjusted rendering logic to maintain a clean and consistent UI.
2025-03-28 19:42:18 +01:00

20 lines
492 B
Plaintext

@page "/done"
@using FoodsharingSiegen.Shared.Helper
@inherits FsBase
<PageTitle>Abgeschlossen - @AppSettings.Terms.Title</PageTitle>
<h2>Abgeschlossen</h2>
@{
var filterList = ProspectList.ApplyFilter(Filter);
}
<hr />
<ProspectFilterControl @bind-Filter="Filter" StateFilter="ProspectStateFilter.Completed"></ProspectFilterControl>
<hr />
<ProspectGrid
Prospects="filterList"
OnDataChanged="@LoadProspects"
StateFilter="ProspectStateFilter.Completed">
</ProspectGrid>