Navbar reorder
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user