diff --git a/MP.INVE/Components/CmpTop.razor.cs b/MP.INVE/Components/CmpTop.razor.cs index 433e4f7b..e5204db8 100644 --- a/MP.INVE/Components/CmpTop.razor.cs +++ b/MP.INVE/Components/CmpTop.razor.cs @@ -43,24 +43,21 @@ namespace MP.INVE.Components protected async Task getId() { OperatoreDTO answ = new OperatoreDTO(); - if (!NavManager.Uri.Contains("Jumper?")) + answ = await localStorage.GetItemAsync("MatrOpr"); + if (answ != null) { - answ = await localStorage.GetItemAsync("MatrOpr"); - if (answ != null) + userName = $"{answ.Cognome} {answ.Nome} ({answ.MatrOpr})"; + if (NavManager.Uri.Contains("OperatoreLogin")) { - userName = $"{answ.Cognome} {answ.Nome} ({answ.MatrOpr})"; - if (NavManager.Uri.Contains("OperatoreLogin")) - { - NavManager.NavigateTo("Starter", true); - } + NavManager.NavigateTo("Starter", true); } - else + } + else + { + userName = "0"; + if (!NavManager.Uri.Contains("OperatoreLogin")) { - userName = "0"; - if (!NavManager.Uri.Contains("OperatoreLogin")) - { - NavManager.NavigateTo("OperatoreLogin", true); - } + NavManager.NavigateTo("OperatoreLogin", true); } } } diff --git a/MP.INVE/MP.INVE.csproj b/MP.INVE/MP.INVE.csproj index d4b10eff..24a69ae8 100644 --- a/MP.INVE/MP.INVE.csproj +++ b/MP.INVE/MP.INVE.csproj @@ -5,7 +5,7 @@ enable enable MP.INVE - 6.16.2211.2810 + 6.16.2211.2811 diff --git a/MP.INVE/Resources/ChangeLog.html b/MP.INVE/Resources/ChangeLog.html index 2881d95c..4884924e 100644 --- a/MP.INVE/Resources/ChangeLog.html +++ b/MP.INVE/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOINVE -

Versione: 6.16.2211.2810

+

Versione: 6.16.2211.2811


Note di rilascio:
  • diff --git a/MP.INVE/Resources/VersNum.txt b/MP.INVE/Resources/VersNum.txt index 9bfce77d..25a21212 100644 --- a/MP.INVE/Resources/VersNum.txt +++ b/MP.INVE/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2211.2810 +6.16.2211.2811 diff --git a/MP.INVE/Resources/manifest.xml b/MP.INVE/Resources/manifest.xml index 3c86eba8..2d10058c 100644 --- a/MP.INVE/Resources/manifest.xml +++ b/MP.INVE/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2211.2810 + 6.16.2211.2811 https://nexus.steamware.net/repository/SWS/MP-INVE/stable/LAST/MP.INVE.zip https://nexus.steamware.net/repository/SWS/MP-INVE/stable/LAST/ChangeLog.html false diff --git a/MP.INVE/Shared/MainLayout.razor.cs b/MP.INVE/Shared/MainLayout.razor.cs index 057c33ea..9f733c3b 100644 --- a/MP.INVE/Shared/MainLayout.razor.cs +++ b/MP.INVE/Shared/MainLayout.razor.cs @@ -26,26 +26,23 @@ namespace MP.INVE.Shared protected async Task getId() { OperatoreDTO answ = new OperatoreDTO(); - if (!NavManager.Uri.Contains("Jumper?")) + answ = await localStorage.GetItemAsync("MatrOpr"); + if (answ != null) { - answ = await localStorage.GetItemAsync("MatrOpr"); - if (answ != null) + userName = $"{answ.Cognome} {answ.Nome} ({answ.MatrOpr})"; + if (NavManager.Uri.Contains("OperatoreLogin")) { - userName = $"{answ.Cognome} {answ.Nome} ({answ.MatrOpr})"; - if (NavManager.Uri.Contains("OperatoreLogin")) - { - NavManager.NavigateTo("Elencomagazzini", true); - } + NavManager.NavigateTo("Elencomagazzini", true); } - else + } + else + { + userName = "0"; + if (Height != 480 && Width != 320) { - userName = "0"; - if (Height != 480 && Width != 320) + if (!NavManager.Uri.Contains("OperatoreLogin")) { - if (!NavManager.Uri.Contains("OperatoreLogin")) - { - NavManager.NavigateTo("OperatoreLogin", true); - } + NavManager.NavigateTo("OperatoreLogin", true); } } }