fix bypass controllo click in pagina reg new device
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>6.16.2312.1117</Version>
|
||||
<Version>6.16.2312.1209</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP_TAB_SERV</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2312.1117</h4>
|
||||
<h4>Versione: 6.16.2312.1209</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2312.1117
|
||||
6.16.2312.1209
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2312.1117</version>
|
||||
<version>6.16.2312.1209</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>
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -14,9 +14,18 @@
|
||||
foreach (var item in MenuItems)
|
||||
{
|
||||
<div class="nav-item px-2">
|
||||
<NavLink class="nav-link px-2" @onclick="()=>SetPage(item.NavigateUrl)">
|
||||
<i class="fa fa-lg @item.icona pe-2" aria-hidden="true"></i> @item.Testo
|
||||
</NavLink>
|
||||
@if (@linkActive(item.NavigateUrl))
|
||||
{
|
||||
<NavLink class="nav-link px-2 active" @onclick="()=>SetPage(item.NavigateUrl)">
|
||||
<i class="fa fa-lg @item.icona pe-2" aria-hidden="true"></i> @item.Testo
|
||||
</NavLink>
|
||||
}
|
||||
else
|
||||
{
|
||||
<NavLink class="nav-link px-2" @onclick="()=>SetPage(item.NavigateUrl)">
|
||||
<i class="fa fa-lg @item.icona pe-2" aria-hidden="true"></i> @item.Testo
|
||||
</NavLink>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user