fix edit mode
This commit is contained in:
@@ -31,7 +31,10 @@
|
||||
Modifica Parametro
|
||||
</div>
|
||||
<div>
|
||||
<button @onclick="() => done()" class="btn btn-light">Done <i class="fa-solid fa-check"></i></button>
|
||||
@if (isEditing)
|
||||
{
|
||||
<span class="text-light">PENDING CHANGES...</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -57,7 +60,7 @@
|
||||
<div class="col-3 pe-0">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-text" id="inputGroup-sizing-sm">VALORE</span>
|
||||
<input type="text" class="form-control" aria-label="Art search" aria-describedby="inputGroup-sizing-sm" @bind-value="@currDetFluxLogRecord.ValoreEdit" >
|
||||
<input type="text" class="form-control" aria-label="Art search" aria-describedby="inputGroup-sizing-sm" @bind-value="@currDetFluxLogRecord.ValoreEdit" @onclick="()=> enableEditing()">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -85,6 +85,10 @@ namespace MP.SPEC.Pages
|
||||
{
|
||||
// METODO PER UPDATE FLUX
|
||||
await MDService.updateDossierValue(currRecordDoss, selRec);
|
||||
currDetFluxLogRecord = null;
|
||||
isEditing = false;
|
||||
await Task.Delay(1);
|
||||
StateHasChanged();
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -104,7 +108,7 @@ namespace MP.SPEC.Pages
|
||||
//isFiltering = false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
private string css()
|
||||
{
|
||||
@@ -120,7 +124,7 @@ namespace MP.SPEC.Pages
|
||||
return answ;
|
||||
}
|
||||
|
||||
private void done()
|
||||
private void enableEditing()
|
||||
{
|
||||
isEditing = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user