ok aggiornamento post delete o update commento

This commit is contained in:
zaccaria.majid
2023-12-04 15:21:05 +01:00
parent 79dbe857da
commit 91cf5806fe
8 changed files with 16 additions and 9 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
</div>
</div>
<div class="col-6">
<button class="btn btn-warning w-100 align-middle" @onclick="doCancel"><i class="fa-solid fa-ban"></i> Annulla</button>
<button class="btn btn-warning w-100 align-middle" @onclick="()=>doCancel()"><i class="fa-solid fa-ban"></i> Annulla</button>
</div>
<div class="col-12 my-1">
<div class="form-floating">
+8 -2
View File
@@ -30,6 +30,8 @@ namespace MP_TAB_SERV.Components
[Parameter]
public bool CanSave { get; set; } = false;
[Parameter]
public EventCallback<bool> 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()
+1 -1
View File
@@ -1,5 +1,5 @@
<NotesEditor CanSave="true" Title="Nuovo Commento" RecMSE="@RecMSE" E_Updated="DoUpdate" CurrRecord="@currEv" CurrComm="currComm"></NotesEditor>
<NotesEditor CanSave="true" Title="Nuovo Commento" E_relData="reloadAfterDelOrUpd" RecMSE="@RecMSE" E_Updated="DoUpdate" CurrRecord="@currEv" CurrComm="currComm"></NotesEditor>
<div class="row mt-1">
<div class="col-12 pr-1">
+2 -1
View File
@@ -90,7 +90,8 @@ namespace MP_TAB_SERV.Components
{
if (rel)
{
await ReloadComments();
await ReloadData();
currComm = null;
await InvokeAsync(StateHasChanged);
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2312.411</Version>
<Version>6.16.2312.415</Version>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP_TAB_SERV</RootNamespace>
</PropertyGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2312.411</h4>
<h4>Versione: 6.16.2312.415</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2312.411
6.16.2312.415
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2312.411</version>
<version>6.16.2312.415</version>
<url>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/MP-TAB-SERV.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>