diff --git a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor.cs b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor.cs index 6d62557..7921c9b 100644 --- a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor.cs +++ b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor.cs @@ -19,7 +19,7 @@ namespace FoodsharingSiegen.Server.Controls private async Task AddInteraction(InteractionType type) { if (Prospect != null && OnDataChanged != null) - await AddInteractionModal.ShowAsync(ModalService, OnDataChanged, type, Prospect.Id); + await InteractionDialog.ShowAsync(ModalService, OnDataChanged, type, Prospect.Id); } private List GetTyped(InteractionType type) diff --git a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor b/FoodsharingSiegen.Server/Dialogs/InteractionDialog.razor similarity index 100% rename from FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor rename to FoodsharingSiegen.Server/Dialogs/InteractionDialog.razor diff --git a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs b/FoodsharingSiegen.Server/Dialogs/InteractionDialog.razor.cs similarity index 97% rename from FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs rename to FoodsharingSiegen.Server/Dialogs/InteractionDialog.razor.cs index 8d6f609..130eafc 100644 --- a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs +++ b/FoodsharingSiegen.Server/Dialogs/InteractionDialog.razor.cs @@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Components; namespace FoodsharingSiegen.Server.Dialogs { - public partial class AddInteractionModal : FsBase + public partial class InteractionDialog : FsBase { #region Dependencies @@ -115,7 +115,7 @@ namespace FoodsharingSiegen.Server.Dialogs ProspectID = prospectId }; - await modalService.Show(headerText, parameter => + await modalService.Show(headerText, parameter => { parameter.Add(nameof(Interaction), interaction); parameter.Add(nameof(ShowInfo), showInfo); diff --git a/FoodsharingSiegen.Server/Pages/Prospects.razor.cs b/FoodsharingSiegen.Server/Pages/Prospects.razor.cs index c19059e..bdb6f87 100644 --- a/FoodsharingSiegen.Server/Pages/Prospects.razor.cs +++ b/FoodsharingSiegen.Server/Pages/Prospects.razor.cs @@ -31,11 +31,6 @@ namespace FoodsharingSiegen.Server.Pages private ProspectFilter Filter { get; set; } = new(); - /// - /// Gets or sets the value of the interaction modal (ab) - /// - private AddInteractionModal? InteractionModal { get; set; } - /// /// Gets or sets the value of the prospect list (ab) ///