Implement archive browser dialog

This commit is contained in:
Pat Hartl 2023-02-13 01:03:38 -06:00
parent c7f1dc7e6b
commit 0f9fe9a0ca

View file

@ -0,0 +1,34 @@
<MudDialog>
<TitleContent>
<MudText Typo="Typo.h6">
Browse Archive
</MudText>
</TitleContent>
<DialogContent>
<ArchiveBrowser ArchiveId="ArchiveId" />
</DialogContent>
<DialogActions>
<MudButton OnClick="Cancel">Cancel</MudButton>
</DialogActions>
</MudDialog>
@code {
[CascadingParameter] MudDialogInstance MudDialog { get; set; }
[Parameter] public Guid ArchiveId { get; set; }
protected override async Task OnInitializedAsync()
{
MudDialog.Options.MaxWidth = MaxWidth.Large;
MudDialog.Options.FullWidth = true;
MudDialog.Options.FullScreen = true;
MudDialog.SetOptions(MudDialog.Options);
}
private void Cancel()
{
MudDialog.Cancel();
}
}