Implement archive browser dialog
This commit is contained in:
parent
c7f1dc7e6b
commit
0f9fe9a0ca
1 changed files with 34 additions and 0 deletions
34
LANCommander/Components/ArchiveBrowserDialog.razor
Normal file
34
LANCommander/Components/ArchiveBrowserDialog.razor
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue