Spostato tasto salva

This commit is contained in:
2026-07-06 15:00:38 +02:00
parent a3d27c9ef8
commit a04ccde2ec
@@ -24,8 +24,7 @@
<MudDialog Class="customDialog-form"> <MudDialog Class="customDialog-form">
<DialogContent> <DialogContent>
<MudForm ReadOnly="ReadOnly" @ref="_form"> <MudForm ReadOnly="ReadOnly" @ref="_form">
<HeaderLayout Cancel="true" OnCancel="@Cancel" LabelSave="@LabelSave" <HeaderLayout Cancel="true" OnCancel="@Cancel" Title="Scheda"/>
OnSave="Save" Title="Scheda"/>
<div class="content"> <div class="content">
@@ -184,6 +183,15 @@
Suggerisci note descrittive Suggerisci note descrittive
</MudButton> </MudButton>
</div> </div>
@if (!LabelSave.IsNullOrEmpty())
{
<div class="container-button">
<MudButton OnClick="@Save" Color="Color.Primary" Variant="Variant.Filled">
@LabelSave
</MudButton>
</div>
}
</div> </div>
</MudForm> </MudForm>
@@ -592,7 +600,7 @@
if (modal is { Canceled: false, Data: List<ArticoliInGrigliaDto> articoliSelezionati }) if (modal is { Canceled: false, Data: List<ArticoliInGrigliaDto> articoliSelezionati })
{ {
Scheda.Articoli.AddRange(articoliSelezionati.ConvertAll(x => new SchedaArticolo Scheda.Articoli.InsertRange(0, articoliSelezionati.ConvertAll(x => new SchedaArticolo
{ {
Barcode = x.Barcode, Barcode = x.Barcode,
Descrizione = x.Descrizione Descrizione = x.Descrizione
@@ -677,7 +685,7 @@
{ {
RecalcDirty(true); RecalcDirty(true);
Scheda.Articoli.Add(new SchedaArticolo Scheda.Articoli.Insert(0, new SchedaArticolo
{ {
Barcode = art.Barcode, Barcode = art.Barcode,
Descrizione = art.Descrizione Descrizione = art.Descrizione