-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor b/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor
index a1a44ba..102201f 100644
--- a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor
+++ b/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor
@@ -9,17 +9,21 @@
-
-
+
+ Wer?
+
+
-
-
+
+ Wann?
+
+
@@ -31,8 +35,8 @@
}
-
+
\ No newline at end of file
diff --git a/FoodsharingSiegen.Server/Dialogs/AddProspectModal.razor b/FoodsharingSiegen.Server/Dialogs/AddProspectModal.razor
index 0240768..59e08db 100644
--- a/FoodsharingSiegen.Server/Dialogs/AddProspectModal.razor
+++ b/FoodsharingSiegen.Server/Dialogs/AddProspectModal.razor
@@ -37,8 +37,8 @@
-
+
\ No newline at end of file
diff --git a/FoodsharingSiegen.Server/Pages/Prospects.razor.cs b/FoodsharingSiegen.Server/Pages/Prospects.razor.cs
index ebb2523..0841531 100644
--- a/FoodsharingSiegen.Server/Pages/Prospects.razor.cs
+++ b/FoodsharingSiegen.Server/Pages/Prospects.razor.cs
@@ -1,4 +1,5 @@
-using FoodsharingSiegen.Contracts.Entity;
+using Blazorise;
+using FoodsharingSiegen.Contracts.Entity;
using FoodsharingSiegen.Server.Data.Service;
using FoodsharingSiegen.Server.Dialogs;
using Microsoft.AspNetCore.Components;
@@ -7,6 +8,7 @@ namespace FoodsharingSiegen.Server.Pages
{
public partial class Prospects
{
+ [Inject] IMessageService MessageService { get; set; }
[Inject] public ProspectService ProspectService { get; set; } = null!;
[Inject] public UserService UserService { get; set; } = null!;
@@ -57,8 +59,18 @@ namespace FoodsharingSiegen.Server.Pages
private async Task RemoveInteraction(Guid arg)
{
- await ProspectService.RemoveInteraction(arg);
- await LoadProspects();
+ var confirm = await MessageService.Confirm("Interaktion wirklich löschen?", "Bestätigen", o => {
+ o.ConfirmButtonText = "Ja, wirklich!";
+ o.CancelButtonText = "Abbrechen";
+ o.ShowMessageIcon = false;
+ });
+
+ if (confirm)
+ {
+ await ProspectService.RemoveInteraction(arg);
+ await LoadProspects();
+ }
+
}
}
}
\ No newline at end of file