Add IdCheckPossible filter and UI toggle: enhance ProspectFilter and ProspectSortControl for IdCheck functionality

This commit is contained in:
a.beging@eas-solutions.de
2026-04-22 07:08:33 +02:00
parent 4330b53824
commit 03872e8bba
6 changed files with 22 additions and 1 deletions

View File

@@ -49,4 +49,8 @@
{
<Badge class="mr-1 mb-1" Color="Color.Info" Closable="true" CloseClicked="@EventCallback.Factory.Create(this, () => DisableFilterAsync(nameof(Filter.DeletedOnly)))">Gelöschte</Badge>
}
@if(Filter.IdCheckPossible)
{
<Badge class="mr-1 mb-1" Color="Color.Info" Closable="true" CloseClicked="@EventCallback.Factory.Create(this, () => DisableFilterAsync(nameof(Filter.IdCheckPossible)))">Perso-Prüfung möglich</Badge>
}
</div>

View File

@@ -78,6 +78,7 @@ public partial class ProspectSortControl
case nameof(Filter.RecentActivity): Filter.RecentActivity = false; break;
case nameof(Filter.NoActivity): Filter.NoActivity = false; break;
case nameof(Filter.DeletedOnly): Filter.DeletedOnly = false; break;
case nameof(Filter.IdCheckPossible): Filter.IdCheckPossible = false; break;
}
await FilterChanged.InvokeAsync(Filter);
}

View File

@@ -20,6 +20,15 @@
</div>
}
@if(new[] { ProspectStateFilter.OnBoarding, ProspectStateFilter.Verification }.Contains(StateFilter))
{
<div style="margin-left: 1rem;">
<Switch TValue="bool" Checked="ModalFilter.IdCheckPossible" CheckedChanged="(v) => { ModalFilter.IdCheckPossible = v; StateHasChanged(); }" Color="Color.Primary">
Perso-Prüfung möglich
</Switch>
</div>
}
@if (new[] { ProspectStateFilter.All, ProspectStateFilter.OnBoarding, ProspectStateFilter.Verification }.Contains(StateFilter))
{
<div style="margin-left: 1rem;">

View File

@@ -24,7 +24,8 @@ namespace FoodsharingSiegen.Server.Dialogs
WithoutIdCheck = CurrentFilter.WithoutIdCheck,
NoActivity = CurrentFilter.NoActivity,
RecentActivity = CurrentFilter.RecentActivity,
DeletedOnly = CurrentFilter.DeletedOnly
DeletedOnly = CurrentFilter.DeletedOnly,
IdCheckPossible = CurrentFilter.IdCheckPossible
};
base.OnInitialized();
}