Aggiunto messaggio per completamento ispezione

This commit is contained in:
2026-03-02 13:00:35 +01:00
parent 63368748ab
commit 8fbeaf8637
3 changed files with 24 additions and 9 deletions

View File

@@ -0,0 +1,26 @@
<MudMessageBox @ref="_confirmDelete" Title="Attenzione!" CancelText="@NoText">
<MessageContent>
@Message
</MessageContent>
<YesButton>
<MudButton Size="Size.Small" Variant="Variant.Filled" Color="YesColor">
@YesText
</MudButton>
</YesButton>
</MudMessageBox>
@code
{
[Parameter] public string Message { get; set; } = string.Empty;
[Parameter] public string YesText { get; set; } = string.Empty;
[Parameter] public string NoText { get; set; } = "Annulla";
[Parameter] public Color YesColor { get; set; } = Color.Primary;
private MudMessageBox? _confirmDelete;
public async Task<bool?> ShowAsync()
{
if (_confirmDelete == null) return null;
return await _confirmDelete.ShowAsync();
}
}