Edit prospect

This commit is contained in:
Andre Beging
2022-04-11 17:21:55 +02:00
parent 434426bd7c
commit dfb8040866
6 changed files with 198 additions and 33 deletions

View File

@@ -10,6 +10,11 @@
<div class="@divClass">
<h5 class="mb-0">
@if (CurrentUser.IsInGroup(UserGroup.WelcomeTeam, UserGroup.Ambassador))
{
<a href=""><i class="fa-solid fa-pen-to-square" @onclick="() => ProspectModal.Show(Prospect)" @onclick:preventDefault></i> </a>
}
@Prospect.Name
<small style="font-size: .9rem; opacity: .7;">
<a class="invert" href="https://foodsharing.de/profile/@Prospect.FsId" target="_blank">Profil öffnen</a>

View File

@@ -9,6 +9,8 @@ namespace FoodsharingSiegen.Server.Controls
[Parameter] public Prospect? Prospect { get; set; }
[Parameter] public AddInteractionModal InteractionModal { get; set; } = null!;
[Parameter] public AddProspectModal ProspectModal { get; set; } = null!;
[Parameter] public EventCallback<Guid> RemoveInteraction { get; set; }