fix reload

This commit is contained in:
zaccaria.majid
2023-12-01 12:06:10 +01:00
parent df0dfcec20
commit 07de159dd1
8 changed files with 24 additions and 8 deletions
+3
View File
@@ -2,6 +2,7 @@ using Microsoft.AspNetCore.Components;
using MP.Data.DatabaseModels;
using MP.Data.DTO;
using MP.Data.Services;
using MP_TAB_SERV.Pages;
using Newtonsoft.Json;
using NLog;
using System.Diagnostics;
@@ -120,6 +121,8 @@ namespace MP_TAB_SERV.Components
await Task.Delay(1);
if (!NavMan.Uri.Contains("reg-new-device"))
{
await MsgServ.IdxMaccSet("");
NavMan.NavigateTo("status-map", true);
}
}
+4 -1
View File
@@ -146,7 +146,7 @@ namespace MP_TAB_SERV.Components
//return base.OnAfterRenderAsync(firstRender);
}
protected override void OnInitialized()
protected override async Task OnInitializedAsync()
{
isLoading = true;
// se configurata uso cartella virtuale... altrimenti cartella processo
@@ -159,6 +159,9 @@ namespace MP_TAB_SERV.Components
{
imgBasePath = $"{Environment.CurrentDirectory}/images/";
}
}
/// <summary>
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2312.110</Version>
<Version>6.16.2312.112</Version>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP_TAB_SERV</RootNamespace>
</PropertyGroup>
+11 -1
View File
@@ -3,6 +3,7 @@ using Microsoft.JSInterop;
using MP.Data.Conf;
using MP.Data.DatabaseModels;
using MP.Data.Services;
using MP_TAB_SERV.Shared;
using NLog;
using System.Runtime.ExceptionServices;
@@ -51,6 +52,8 @@ namespace MP_TAB_SERV.Pages
[Inject]
protected MessageService MsgServ { get; set; } = null!;
[Inject]
protected NavigationManager NavMan { get; set; } = null!;
protected bool ShowCard
{
@@ -94,11 +97,18 @@ namespace MP_TAB_SERV.Pages
}
}
protected override void OnInitialized()
protected override async Task OnInitializedAsync()
{
setDefaults();
ListMSE = null;
SetupConf();
var currMacc = await MsgServ.IdxMaccGet();
if (currMacc != "" && currMacc != null)
{
await MsgServ.IdxMaccSet(currMacc);
NavMan.NavigateTo($"machine-detail");
}
}
protected void SaveData(List<MappaStatoExpl> newList)
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2312.110</h4>
<h4>Versione: 6.16.2312.112</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2312.110
6.16.2312.112
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2312.110</version>
<version>6.16.2312.112</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>
+2 -2
View File
@@ -332,7 +332,7 @@ namespace MP.Data.Services
/// </summary>
public async Task<string> IdxMaccGet()
{
return await sessionStore.GetItemAsync<string>("CurrMach");
return await localStorage.GetItemAsync<string>("CurrMach");
}
/// <summary>
@@ -340,7 +340,7 @@ namespace MP.Data.Services
/// </summary>
public async Task IdxMaccSet(string machSel)
{
await sessionStore.SetItemAsync("CurrMach", machSel);
await localStorage.SetItemAsync("CurrMach", machSel);
}
/// <summary>