Navbar reorder

This commit is contained in:
Andre Beging
2022-05-31 16:13:38 +02:00
parent 7ae53bd984
commit 3487cdcb58
3 changed files with 20 additions and 16 deletions

View File

@@ -13,11 +13,6 @@ namespace FoodsharingSiegen.Server.Pages
{
#region Dependencies (Injected)
/// <summary>
/// Gets or sets the value of the message service (ab)
/// </summary>
[Inject] private IMessageService MessageService { get; set; } = null!;
/// <summary>
/// Gets or sets the value of the prospect service (ab)
/// </summary>
@@ -151,7 +146,7 @@ namespace FoodsharingSiegen.Server.Pages
/// <param name="arg">The arg</param>
private async Task RemoveInteraction(Guid arg)
{
var confirm = await MessageService.Confirm("Interaktion wirklich löschen?", "Bestätigen", o => {
var confirm = await Message.Confirm("Interaktion wirklich löschen?", "Bestätigen", o => {
o.ConfirmButtonText = "Ja, wirklich!";
o.CancelButtonText = "Abbrechen";
o.ShowMessageIcon = false;
@@ -162,6 +157,8 @@ namespace FoodsharingSiegen.Server.Pages
await ProspectService.RemoveInteraction(arg);
await LoadProspects();
}
await InvokeAsync(StateHasChanged);
}
#endregion