diff --git a/Lux.UI/Components/Compo/Admin/VocabMan.razor b/Lux.UI/Components/Compo/Admin/VocabMan.razor index e63c0527..66b90cc3 100644 --- a/Lux.UI/Components/Compo/Admin/VocabMan.razor +++ b/Lux.UI/Components/Compo/Admin/VocabMan.razor @@ -36,6 +36,7 @@ + @@ -44,9 +45,13 @@ @foreach (var item in ListPaged) { - + +
Lemma Traduzione
+ + + @item.Lemma - @if (currRec != null && item.Lemma == currRec.Lemma && item.Lingua == currRec.Lingua) + @if (editRec != null && item.Lemma == editRec.Lemma && item.Lingua == editRec.Lingua) {
diff --git a/Lux.UI/Components/Compo/Admin/VocabMan.razor.cs b/Lux.UI/Components/Compo/Admin/VocabMan.razor.cs index c5bc3f1a..1df6d411 100644 --- a/Lux.UI/Components/Compo/Admin/VocabMan.razor.cs +++ b/Lux.UI/Components/Compo/Admin/VocabMan.razor.cs @@ -48,7 +48,7 @@ namespace Lux.UI.Components.Compo.Admin #region Private Fields private int currPage = 1; - private VocabolarioModel? currRec = null; + private VocabolarioModel? editRec = null; private bool isLoading = false; private List ListPaged = new(); private int numRecord = 10; @@ -61,18 +61,22 @@ namespace Lux.UI.Components.Compo.Admin private void DoCancel() { - currRec = null; + editRec = null; } private void DoEdit(VocabolarioModel selRec) { - currRec = currRec == null || currRec.Lemma != selRec.Lemma ? selRec : null; + editRec = editRec == null || editRec.Lemma != selRec.Lemma ? selRec : null; + } + private void DoSelect(VocabolarioModel selRec) + { + editRec = editRec == null || editRec.Lemma != selRec.Lemma ? selRec : null; } private async Task DoSave() { - await EC_Updated.InvokeAsync(currRec); - currRec = null; + await EC_Updated.InvokeAsync(editRec); + editRec = null; } private void FiltLingua() diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt index 5035cc6e..a146d606 100644 --- a/Resources/VersNum.txt +++ b/Resources/VersNum.txt @@ -1,2 +1 @@ 1.1.2606.0411 -1.1.2606.0411 diff --git a/Resources/manifest.xml b/Resources/manifest.xml index 17dbd791..717d32fc 100644 --- a/Resources/manifest.xml +++ b/Resources/manifest.xml @@ -5,10 +5,3 @@ http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html false - - - 1.1.2606.0411 - http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip - http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html - false -