@if (ListMSE == null || ListMSE.Count == 0 || isCalcSize)
{
-
+ if (ListMachineEnabled == null || ListMachineEnabled.Count == 0)
+ {
+
+
+ Attenzione!
+
+
+
+ Nessun impianto abilitato per l'operatore.
+
+
+
+
DoLogout()">
+ LogOut
+
+
+ }
}
else
{
diff --git a/MP-TAB3/Pages/StatusMap.razor.cs b/MP-TAB3/Pages/StatusMap.razor.cs
index 0cb404f1..afa603c1 100644
--- a/MP-TAB3/Pages/StatusMap.razor.cs
+++ b/MP-TAB3/Pages/StatusMap.razor.cs
@@ -111,6 +111,18 @@ namespace MP_TAB3.Pages
return answ;
}
+ protected async Task DoLogout()
+ {
+ string tgtUrl = "logout";
+ await Task.Delay(1);
+ if (tgtUrl.Contains("status-map"))
+ {
+ await MsgServ.IdxMaccSet("");
+ }
+ await MsgServ.LastOpenedPageSet(tgtUrl);
+ NavMan.NavigateTo(tgtUrl, true);
+ }
+
protected async Task getWDim()
{
var dimension = await JSRuntime.InvokeAsync