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.
20 lines
492 B
Plaintext
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> |