Set dialog options within dialog
parent
0c532de7e2
commit
ff071d2680
|
@ -23,6 +23,8 @@
|
|||
MudDialog.Options.MaxWidth = MaxWidth.Large;
|
||||
MudDialog.Options.FullWidth = true;
|
||||
MudDialog.Options.FullScreen = true;
|
||||
MudDialog.Options.CloseButton = true;
|
||||
MudDialog.Options.CloseOnEscapeKey = true;
|
||||
|
||||
MudDialog.SetOptions(MudDialog.Options);
|
||||
}
|
||||
|
|
|
@ -63,6 +63,14 @@
|
|||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
MudDialog.Options.MaxWidth = MaxWidth.Large;
|
||||
MudDialog.Options.FullWidth = true;
|
||||
MudDialog.Options.CloseButton = false;
|
||||
MudDialog.Options.CloseOnEscapeKey = false;
|
||||
MudDialog.Options.DisableBackdropClick = true;
|
||||
|
||||
MudDialog.SetOptions(MudDialog.Options);
|
||||
|
||||
HttpClient.BaseAddress = new Uri(Navigator.BaseUri);
|
||||
|
||||
Archive = new Archive()
|
||||
|
|
|
@ -68,6 +68,14 @@
|
|||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
MudDialog.Options.MaxWidth = MaxWidth.ExtraLarge;
|
||||
MudDialog.Options.FullWidth = true;
|
||||
MudDialog.Options.CloseButton = true;
|
||||
MudDialog.Options.CloseOnEscapeKey = false;
|
||||
MudDialog.Options.DisableBackdropClick = true;
|
||||
|
||||
MudDialog.SetOptions(MudDialog.Options);
|
||||
|
||||
Snippets = ScriptService.GetSnippets();
|
||||
|
||||
if (Script == null)
|
||||
|
|
|
@ -288,14 +288,7 @@
|
|||
["GameId"] = Game.Id
|
||||
};
|
||||
|
||||
var dialog = await DialogService.ShowAsync<ArchiveUploader>("Upload Archive", parameters, new DialogOptions()
|
||||
{
|
||||
CloseButton = false,
|
||||
DisableBackdropClick = true,
|
||||
FullWidth = true,
|
||||
MaxWidth = MaxWidth.Large,
|
||||
CloseOnEscapeKey = false,
|
||||
});
|
||||
var dialog = await DialogService.ShowAsync<ArchiveUploader>("Upload Archive", parameters);
|
||||
|
||||
var result = await dialog.Result;
|
||||
|
||||
|
@ -343,14 +336,7 @@
|
|||
["Script"] = script
|
||||
};
|
||||
|
||||
var dialog = await DialogService.ShowAsync<ScriptEditorDialog>("Edit Script", parameters, new DialogOptions()
|
||||
{
|
||||
CloseButton = true,
|
||||
DisableBackdropClick = true,
|
||||
FullWidth = true,
|
||||
MaxWidth = MaxWidth.ExtraLarge,
|
||||
CloseOnEscapeKey = false,
|
||||
});
|
||||
var dialog = await DialogService.ShowAsync<ScriptEditorDialog>("Edit Script", parameters);
|
||||
|
||||
var result = await dialog.Result;
|
||||
|
||||
|
|
Loading…
Reference in New Issue