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.
29 lines
752 B
Plaintext
29 lines
752 B
Plaintext
@page "/"
|
|
@page "/prospect"
|
|
@page "/prospects"
|
|
|
|
@using FoodsharingSiegen.Shared.Helper
|
|
@inherits FsBase
|
|
|
|
<PageTitle>Neue Foodsaver - @AppSettings.Terms.Title</PageTitle>
|
|
<h2>Neue Foodsaver</h2>
|
|
|
|
<Button
|
|
Color="Color.Primary"
|
|
Clicked="@CreateProspectAsync"
|
|
Visibility="@(CurrentUser.IsInGroup(UserGroup.WelcomeTeam, UserGroup.Ambassador) ? Visibility.Default : Visibility.Invisible)"
|
|
>Hinzufügen
|
|
</Button>
|
|
|
|
@{
|
|
var filterList = ProspectList.ApplyFilter(Filter);
|
|
}
|
|
|
|
<hr/>
|
|
<ProspectFilterControl @bind-Filter="Filter" StateFilter="ProspectStateFilter.OnBoarding"></ProspectFilterControl>
|
|
<hr />
|
|
<ProspectGrid
|
|
Prospects="filterList"
|
|
OnDataChanged="@LoadProspects"
|
|
StateFilter="ProspectStateFilter.OnBoarding">
|
|
</ProspectGrid> |