From 91cf5806fec4f0771b0b66e2fd989cd1fc2bcef8 Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Mon, 4 Dec 2023 15:21:05 +0100 Subject: [PATCH] ok aggiornamento post delete o update commento --- MP-TAB-SERV/Components/NotesEditor.razor | 2 +- MP-TAB-SERV/Components/NotesEditor.razor.cs | 10 ++++++++-- MP-TAB-SERV/Components/NotesMan.razor | 2 +- MP-TAB-SERV/Components/NotesMan.razor.cs | 3 ++- MP-TAB-SERV/MP-TAB-SERV.csproj | 2 +- MP-TAB-SERV/Resources/ChangeLog.html | 2 +- MP-TAB-SERV/Resources/VersNum.txt | 2 +- MP-TAB-SERV/Resources/manifest.xml | 2 +- 8 files changed, 16 insertions(+), 9 deletions(-) diff --git a/MP-TAB-SERV/Components/NotesEditor.razor b/MP-TAB-SERV/Components/NotesEditor.razor index 1958a1b7..7c93e784 100644 --- a/MP-TAB-SERV/Components/NotesEditor.razor +++ b/MP-TAB-SERV/Components/NotesEditor.razor @@ -8,7 +8,7 @@
- +
diff --git a/MP-TAB-SERV/Components/NotesEditor.razor.cs b/MP-TAB-SERV/Components/NotesEditor.razor.cs index 20bd31e4..7282f87b 100644 --- a/MP-TAB-SERV/Components/NotesEditor.razor.cs +++ b/MP-TAB-SERV/Components/NotesEditor.razor.cs @@ -30,6 +30,8 @@ namespace MP_TAB_SERV.Components [Parameter] public bool CanSave { get; set; } = false; [Parameter] + public EventCallback E_relData { get; set; } + [Parameter] public CommentiModel? CurrComm { set @@ -101,8 +103,10 @@ namespace MP_TAB_SERV.Components #region Protected Methods - protected void doCancel() + protected async Task doCancel() { + + await E_relData.InvokeAsync(true); DoReset(); } @@ -136,9 +140,11 @@ namespace MP_TAB_SERV.Components // inserisco await TabServ.EvListInsert(newRec, MP.Data.Objects.Enums.tipoInputEvento.commento); // reset + await E_relData.InvokeAsync(true); DoReset(); + //StateHasChanged(); //ToggleCtrl(); - await E_Updated.InvokeAsync(true); + } protected override void OnInitialized() diff --git a/MP-TAB-SERV/Components/NotesMan.razor b/MP-TAB-SERV/Components/NotesMan.razor index 8d43a10c..417f3357 100644 --- a/MP-TAB-SERV/Components/NotesMan.razor +++ b/MP-TAB-SERV/Components/NotesMan.razor @@ -1,5 +1,5 @@  - +
diff --git a/MP-TAB-SERV/Components/NotesMan.razor.cs b/MP-TAB-SERV/Components/NotesMan.razor.cs index da0df09a..8e5b22a5 100644 --- a/MP-TAB-SERV/Components/NotesMan.razor.cs +++ b/MP-TAB-SERV/Components/NotesMan.razor.cs @@ -90,7 +90,8 @@ namespace MP_TAB_SERV.Components { if (rel) { - await ReloadComments(); + await ReloadData(); + currComm = null; await InvokeAsync(StateHasChanged); } } diff --git a/MP-TAB-SERV/MP-TAB-SERV.csproj b/MP-TAB-SERV/MP-TAB-SERV.csproj index 61b754bc..68f8a353 100644 --- a/MP-TAB-SERV/MP-TAB-SERV.csproj +++ b/MP-TAB-SERV/MP-TAB-SERV.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2312.411 + 6.16.2312.415 enable MP_TAB_SERV diff --git a/MP-TAB-SERV/Resources/ChangeLog.html b/MP-TAB-SERV/Resources/ChangeLog.html index 6027bf99..c183b4d2 100644 --- a/MP-TAB-SERV/Resources/ChangeLog.html +++ b/MP-TAB-SERV/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2312.411

+

Versione: 6.16.2312.415


Note di rilascio:
  • diff --git a/MP-TAB-SERV/Resources/VersNum.txt b/MP-TAB-SERV/Resources/VersNum.txt index 099b8cc1..0f1b4051 100644 --- a/MP-TAB-SERV/Resources/VersNum.txt +++ b/MP-TAB-SERV/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2312.411 +6.16.2312.415 diff --git a/MP-TAB-SERV/Resources/manifest.xml b/MP-TAB-SERV/Resources/manifest.xml index 005abba5..a8c6f52e 100644 --- a/MP-TAB-SERV/Resources/manifest.xml +++ b/MP-TAB-SERV/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2312.411 + 6.16.2312.415 https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/MP-TAB-SERV.zip https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/ChangeLog.html false