Initial commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
@using MudBlazor
|
||||
|
||||
<MudDialog >
|
||||
<TitleContent>
|
||||
<MudText Typo="Typo.h6">Edit Permission Revoked</MudText>
|
||||
</TitleContent>
|
||||
<DialogContent>
|
||||
<MudText Typo="Typo.body1">
|
||||
Another user has taken edit permission. Your changes may not be saved.
|
||||
</MudText>
|
||||
<MudText Typo="Typo.body2" Class="mt-3">
|
||||
Please reload the page to request edit permission again.
|
||||
</MudText>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="HandleReloadPage">Reload Page</MudButton>
|
||||
</DialogActions>
|
||||
</MudDialog>
|
||||
|
||||
@code {
|
||||
[CascadingParameter] IMudDialogInstance Dialog { get; set; } = null!;
|
||||
[Parameter] public Action? OnReload { get; set; }
|
||||
|
||||
private void HandleReloadPage()
|
||||
{
|
||||
Dialog.Close();
|
||||
OnReload?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user