From e327544240c76b4377f6cfb70f404896a21e89e0 Mon Sep 17 00:00:00 2001 From: Andre Beging Date: Fri, 28 Mar 2025 19:23:43 +0100 Subject: [PATCH] Rename InteractionDialog --- FoodsharingSiegen.Server/Controls/ProspectContainer.razor.cs | 2 +- .../{AddInteractionModal.razor => InteractionDialog.razor} | 0 ...dInteractionModal.razor.cs => InteractionDialog.razor.cs} | 4 ++-- FoodsharingSiegen.Server/Pages/Prospects.razor.cs | 5 ----- 4 files changed, 3 insertions(+), 8 deletions(-) rename FoodsharingSiegen.Server/Dialogs/{AddInteractionModal.razor => InteractionDialog.razor} (100%) rename FoodsharingSiegen.Server/Dialogs/{AddInteractionModal.razor.cs => InteractionDialog.razor.cs} (97%) 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) ///