TAB3:
- fix condizione errori in caso di cambio reparto/impianti - aggiunta pagina force-reset che fa cleanup completo dati browser
This commit is contained in:
@@ -155,12 +155,23 @@ namespace MP_TAB3.Components
|
||||
await RefreshScadLogIn(currOprTokLsDeco);
|
||||
await EA_UserIsOk.InvokeAsync(true);
|
||||
}
|
||||
|
||||
#if false
|
||||
// infine controllo sia valida macchina richiesta rispetto a memoria...
|
||||
// cerco MSE macchina
|
||||
var machMse = MsgServ.GetMachineMse(CurrMacc);
|
||||
if (machMse != null)
|
||||
{
|
||||
MsgServ.LastIdxMacchina = "";
|
||||
NavMan.NavigateTo("status-map");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
protected async Task RefreshScadLogIn(string decodValue)
|
||||
{
|
||||
bool done = false;
|
||||
// solo se non è logout!!!
|
||||
// solo se non � logout!!!
|
||||
if (!NavMan.Uri.Contains("logout"))
|
||||
{
|
||||
if (listT2H == null || listT2H.Count == 0)
|
||||
@@ -177,14 +188,23 @@ namespace MP_TAB3.Components
|
||||
}
|
||||
if (done && !string.IsNullOrEmpty(LastOpenedPage))
|
||||
{
|
||||
// se è nelle pagine "T2H" lascio proseguire...
|
||||
// se � nelle pagine "T2H" lascio proseguire...
|
||||
if (listT2H != null && listT2H.Find(x => x.NavigateUrl == LastOpenedPage) != null)
|
||||
{
|
||||
NavMan.NavigateTo(LastOpenedPage);
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(CurrMacc))
|
||||
{
|
||||
NavMan.NavigateTo(LastOpenedPage);
|
||||
var machMse = await MsgServ.GetMachineMse(CurrMacc);
|
||||
if (machMse == null)
|
||||
{
|
||||
await MsgServ.IdxMaccSet("");
|
||||
NavMan.NavigateTo("status-map");
|
||||
}
|
||||
else
|
||||
{
|
||||
NavMan.NavigateTo(LastOpenedPage);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -51,6 +51,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="my-5">
|
||||
<a href="force-reset" type="button" class="btn btn-danger w-100" aria-label="Reset">Reset Cache</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user