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:
Andre Beging
2025-03-28 19:42:18 +01:00
parent a9730f2adf
commit aadf88db2b
4 changed files with 16 additions and 16 deletions

View File

@@ -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>