Initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
@using MudBlazor
|
||||
|
||||
<MudDialog>
|
||||
<TitleContent>
|
||||
<MudText Typo="Typo.h6">Delete Map</MudText>
|
||||
</TitleContent>
|
||||
<DialogContent>
|
||||
<MudText>Are you sure you want to delete map "@MapName"? This action cannot be undone.</MudText>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<MudButton OnClick="Cancel">Cancel</MudButton>
|
||||
<MudButton Color="Color.Error" Variant="Variant.Filled" OnClick="Submit">Delete</MudButton>
|
||||
</DialogActions>
|
||||
</MudDialog>
|
||||
|
||||
@code {
|
||||
[CascadingParameter] IMudDialogInstance MudDialog { get; set; } = null!;
|
||||
[Parameter] public string MapName { get; set; } = string.Empty;
|
||||
|
||||
void Cancel() => MudDialog.Cancel();
|
||||
void Submit() => MudDialog.Close(DialogResult.Ok(true));
|
||||
}
|
||||
Reference in New Issue
Block a user