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.
This commit is contained in:
@@ -11,15 +11,10 @@
|
||||
}
|
||||
|
||||
<hr />
|
||||
<ProspectFilterControl @bind-Filter="Filter"></ProspectFilterControl>
|
||||
<ProspectFilterControl @bind-Filter="Filter" StateFilter="ProspectStateFilter.Completed"></ProspectFilterControl>
|
||||
<hr />
|
||||
<h5>@(filterList.Count) Einträge</h5>
|
||||
@if (filterList.Any())
|
||||
{
|
||||
|
||||
<div class="row m-0">
|
||||
<Repeater Items="@filterList">
|
||||
<ProspectContainer Prospect="context" RemoveInteraction="RemoveInteraction" StateFilter="ProspectStateFilter.Completed"></ProspectContainer>
|
||||
</Repeater>
|
||||
</div>
|
||||
}
|
||||
<ProspectGrid
|
||||
Prospects="filterList"
|
||||
OnDataChanged="@LoadProspects"
|
||||
StateFilter="ProspectStateFilter.Completed">
|
||||
</ProspectGrid>
|
||||
Reference in New Issue
Block a user