diff --git a/MP-TAB-SERV/MP-TAB-SERV.csproj b/MP-TAB-SERV/MP-TAB-SERV.csproj
index c74167ee..37c695a4 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.1117
+ 6.16.2312.1209
enable
MP_TAB_SERV
diff --git a/MP-TAB-SERV/Pages/Logout.razor.cs b/MP-TAB-SERV/Pages/Logout.razor.cs
index 81f91ac5..b35a8819 100644
--- a/MP-TAB-SERV/Pages/Logout.razor.cs
+++ b/MP-TAB-SERV/Pages/Logout.razor.cs
@@ -42,7 +42,7 @@ namespace MP_TAB_SERV.Pages
await localStorage.SetItemAsync("currTkn", "");
await TDService.OperatoreDeleteRedis(MsgServ.MatrOpr);
MsgServ.RigaOper = null;
- NavMan.NavigateTo("reg-new-device");
+ NavMan.NavigateTo("reg-new-device", true);
}
}
}
\ No newline at end of file
diff --git a/MP-TAB-SERV/Resources/ChangeLog.html b/MP-TAB-SERV/Resources/ChangeLog.html
index 416babf1..0373e16a 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.1117
+ Versione: 6.16.2312.1209
Note di rilascio:
-
diff --git a/MP-TAB-SERV/Resources/VersNum.txt b/MP-TAB-SERV/Resources/VersNum.txt
index 37708e5b..bef5f6be 100644
--- a/MP-TAB-SERV/Resources/VersNum.txt
+++ b/MP-TAB-SERV/Resources/VersNum.txt
@@ -1 +1 @@
-6.16.2312.1117
+6.16.2312.1209
diff --git a/MP-TAB-SERV/Resources/manifest.xml b/MP-TAB-SERV/Resources/manifest.xml
index 333426eb..905c9299 100644
--- a/MP-TAB-SERV/Resources/manifest.xml
+++ b/MP-TAB-SERV/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 6.16.2312.1117
+ 6.16.2312.1209
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
diff --git a/MP-TAB-SERV/Shared/MainLayout.razor.cs b/MP-TAB-SERV/Shared/MainLayout.razor.cs
index cdc81dbe..73566389 100644
--- a/MP-TAB-SERV/Shared/MainLayout.razor.cs
+++ b/MP-TAB-SERV/Shared/MainLayout.razor.cs
@@ -72,7 +72,10 @@ namespace MP_TAB_SERV.Shared
protected async Task handleBodyClick()
{
await Task.Delay(1);
- await checkDtDiff2Logout();
+ if (!NavMan.Uri.Contains("reg-new-device"))
+ {
+ await checkDtDiff2Logout();
+ }
}
private int MatrOpr
@@ -94,7 +97,7 @@ namespace MP_TAB_SERV.Shared
}
break;
case 1:
- if ((diffOfTime.Minutes >= dtScadLogin) && (!NavMan.Uri.Contains("reg-new-device")))
+ if (diffOfTime.Minutes >= dtScadLogin)
{
var userTkn = await TDataService.OperatoreGetRedis(MatrOpr);
if (!string.IsNullOrEmpty(userTkn))
diff --git a/MP-TAB-SERV/Shared/NavMenu.razor b/MP-TAB-SERV/Shared/NavMenu.razor
index a3cfec58..2bdf92e1 100644
--- a/MP-TAB-SERV/Shared/NavMenu.razor
+++ b/MP-TAB-SERV/Shared/NavMenu.razor
@@ -14,9 +14,18 @@
foreach (var item in MenuItems)
{
- SetPage(item.NavigateUrl)">
- @item.Testo
-
+ @if (@linkActive(item.NavigateUrl))
+ {
+ SetPage(item.NavigateUrl)">
+ @item.Testo
+
+ }
+ else
+ {
+ SetPage(item.NavigateUrl)">
+ @item.Testo
+
+ }
}
}
@@ -34,6 +43,16 @@
[Inject]
protected NavigationManager navManager { get; set; } = null!;
+ protected bool linkActive(string objUrl)
+ {
+ bool answ = false;
+ if (navManager.Uri.Contains(objUrl))
+ {
+ answ = true;
+ }
+ return answ;
+ }
+
protected async Task SetPage(string tgtUrl)
{
await Task.Delay(1);