Prospectgrid draft
This commit is contained in:
@@ -22,16 +22,13 @@
|
||||
<hr/>
|
||||
<ProspectFilterControl @bind-Filter="Filter"></ProspectFilterControl>
|
||||
<hr />
|
||||
<h5>@(filterList.Count) Einträge</h5>
|
||||
|
||||
@if (filterList.Any())
|
||||
{
|
||||
<div class="row m-0">
|
||||
<Repeater Items="@filterList">
|
||||
<ProspectContainer Prospect="context" InteractionModal="InteractionModal" ProspectModal="ProspectModal" RemoveInteraction="RemoveInteraction" StateFilter="ProspectStateFilter.OnBoarding"></ProspectContainer>
|
||||
</Repeater>
|
||||
</div>
|
||||
}
|
||||
<ProspectGrid
|
||||
Prospects="filterList"
|
||||
OnRemoveInteraction="RemoveInteractionAsync"
|
||||
StateFilter="ProspectStateFilter.OnBoarding"
|
||||
InteractionModal="InteractionModal"
|
||||
ProspectModal="@ProspectModal">
|
||||
</ProspectGrid>
|
||||
|
||||
<AddProspectModal @ref="ProspectModal" OnAdd="OnAddProspect" OnUpdate="OnUpdateProspect"></AddProspectModal>
|
||||
<AddInteractionModal @ref="InteractionModal" OnAdd="OnAddInteraction" Users="Users"></AddInteractionModal>
|
||||
@@ -138,7 +138,7 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
/// Removes the interaction using the specified arg (a. beging, 11.04.2022)
|
||||
/// </summary>
|
||||
/// <param name="arg">The arg</param>
|
||||
private async Task RemoveInteraction(Guid arg)
|
||||
private async Task RemoveInteractionAsync(Guid arg)
|
||||
{
|
||||
var confirm = await Message.Confirm("Interaktion wirklich löschen?", "Bestätigen", o =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user