Rename InteractionDialog

This commit is contained in:
Andre Beging
2025-03-28 19:23:43 +01:00
parent 91bff3c127
commit e327544240
4 changed files with 3 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ namespace FoodsharingSiegen.Server.Controls
private async Task AddInteraction(InteractionType type) private async Task AddInteraction(InteractionType type)
{ {
if (Prospect != null && OnDataChanged != null) if (Prospect != null && OnDataChanged != null)
await AddInteractionModal.ShowAsync(ModalService, OnDataChanged, type, Prospect.Id); await InteractionDialog.ShowAsync(ModalService, OnDataChanged, type, Prospect.Id);
} }
private List<Interaction> GetTyped(InteractionType type) private List<Interaction> GetTyped(InteractionType type)

View File

@@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Components;
namespace FoodsharingSiegen.Server.Dialogs namespace FoodsharingSiegen.Server.Dialogs
{ {
public partial class AddInteractionModal : FsBase public partial class InteractionDialog : FsBase
{ {
#region Dependencies #region Dependencies
@@ -115,7 +115,7 @@ namespace FoodsharingSiegen.Server.Dialogs
ProspectID = prospectId ProspectID = prospectId
}; };
await modalService.Show<AddInteractionModal>(headerText, parameter => await modalService.Show<InteractionDialog>(headerText, parameter =>
{ {
parameter.Add(nameof(Interaction), interaction); parameter.Add(nameof(Interaction), interaction);
parameter.Add(nameof(ShowInfo), showInfo); parameter.Add(nameof(ShowInfo), showInfo);

View File

@@ -31,11 +31,6 @@ namespace FoodsharingSiegen.Server.Pages
private ProspectFilter Filter { get; set; } = new(); private ProspectFilter Filter { get; set; } = new();
/// <summary>
/// Gets or sets the value of the interaction modal (ab)
/// </summary>
private AddInteractionModal? InteractionModal { get; set; }
/// <summary> /// <summary>
/// Gets or sets the value of the prospect list (ab) /// Gets or sets the value of the prospect list (ab)
/// </summary> /// </summary>