This commit is contained in:
2025-08-21 10:51:32 +02:00
parent cd88c79b32
commit 9957229e70
5 changed files with 80 additions and 5 deletions

View File

@@ -85,4 +85,23 @@ public class ModalHelpers
return await modal.Result;
}
public static async Task<DialogResult?> OpenViewAttach(IDialogService dialog, string? fileViewUrl)
{
var modal = await dialog.ShowAsync<ViewAttached>(
"View attached",
new DialogParameters<ViewAttached>
{
{ x => x.FileViewerUrl, fileViewUrl }
},
new DialogOptions
{
FullScreen = true,
CloseButton = true,
NoHeader = true
}
);
return await modal.Result;
}
}