Aggiunta selezione negozio
This commit is contained in:
24
SteUp.Shared/Core/Helpers/ModalHelper.cs
Normal file
24
SteUp.Shared/Core/Helpers/ModalHelper.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using MudBlazor;
|
||||
using SteUp.Shared.Components.SingleElements.Modal;
|
||||
|
||||
namespace SteUp.Shared.Core.Helpers;
|
||||
|
||||
public class ModalHelper
|
||||
{
|
||||
public static async Task<DialogResult?> OpenSelectShop(IDialogService dialog)
|
||||
{
|
||||
var modal = await dialog.ShowAsync<ModalSelectShop>(
|
||||
"ModalSelectShop",
|
||||
new DialogParameters(),
|
||||
new DialogOptions
|
||||
{
|
||||
FullScreen = false,
|
||||
CloseButton = false,
|
||||
NoHeader = true,
|
||||
BackdropClick = true
|
||||
}
|
||||
);
|
||||
|
||||
return await modal.Result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user