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

@@ -1,10 +1,10 @@
<MudMessageBox @ref="_confirmDelete" Title="Attenzione!" CancelText="Annulla">
<MudMessageBox @ref="_confirmDelete" Title="Attenzione!" CancelText="@NoText">
<MessageContent>
@Message
</MessageContent>
<YesButton>
<MudButton Size="Size.Small" Variant="Variant.Filled" Color="Color.Error">
Cancella
<MudButton Size="Size.Small" Variant="Variant.Filled" Color="YesColor">
@YesText
</MudButton>
</YesButton>
</MudMessageBox>
@@ -12,6 +12,9 @@
@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;