Fix posizione

This commit is contained in:
2025-08-07 09:27:07 +02:00
parent b561405ddc
commit de9d415f04
3 changed files with 64 additions and 13 deletions

View File

@@ -67,11 +67,14 @@ public class ModalHelpers
return await modal.Result;
}
public static async Task<DialogResult?> OpenAddAttached(IDialogService dialog)
public static async Task<DialogResult?> OpenAddAttached(IDialogService dialog, bool canAddPosition)
{
var modal = await dialog.ShowAsync<AddAttached>(
"Add attached",
new DialogParameters<AddAttached>(),
new DialogParameters<AddAttached>
{
{ x => x.CanAddPosition, canAddPosition}
},
new DialogOptions
{
FullScreen = false,