Ancora fix minori x display update in reset pagina TAB3
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>6.16.2502.2815</Version>
|
||||
<Version>6.16.2503.109</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP_TAB3</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
@page "/force-reset"
|
||||
|
||||
<div class="card shadow mt-5">
|
||||
<div class="card-header">
|
||||
<img class="img-fluid" src="./images/LogoMapoFull.png" />
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<LoadingData DisplaySize="LoadingData.CtrlSize.Large" Title="Cleaning Up cache..." DisplayMode="LoadingData.SpinMode.Growl"></LoadingData>
|
||||
<div class="d-flex justify-content-around">
|
||||
<div class="col-12 col-md-10 col-lg-8 col-xl-6 ">
|
||||
|
||||
<div class="card shadow mt-5">
|
||||
<div class="card-header">
|
||||
<img class="img-fluid" src="./images/LogoMapoFull.png" />
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ProgressDisplay RefreshInterval="50" Title="@title" MaxVal="100" CurrVal="@currVal" NextVal="@nextVal" ExpTimeMSec="@expTimeMsec" DisplaySize="ProgressDisplay.ModalSize.Medium"></ProgressDisplay>
|
||||
<LoadingData DisplaySize="LoadingData.CtrlSize.Large" Title="Cleaning Up cache..." DisplayMode="LoadingData.SpinMode.Growl"></LoadingData>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@* <ul class="list-group">
|
||||
<li class="list-group-item active">Reset and reload data</li>
|
||||
<li class="list-group-item">Redis Cache reset</li>
|
||||
<li class="list-group-item">Browser Local Data reset</li>
|
||||
<li class="list-group-item">Browser Session Data reset</li>
|
||||
</ul> *@
|
||||
|
||||
@code {
|
||||
|
||||
@@ -23,19 +23,50 @@
|
||||
[Inject]
|
||||
protected MessageService MsgServ { get; set; } = null!;
|
||||
|
||||
private int currVal = 0;
|
||||
private int nextVal = 0;
|
||||
private int expTimeMsec = 10;
|
||||
private int bDelay = 350;
|
||||
private string title = "...";
|
||||
/// <summary>
|
||||
/// Esecuzione task di reset...
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
title = "Reset and Reload Data";
|
||||
currVal = 0;
|
||||
nextVal = 10;
|
||||
await InvokeAsync(StateHasChanged);
|
||||
// svuoto cache
|
||||
MsgServ.LastIdxMacchina = "";
|
||||
await Task.Delay(bDelay);
|
||||
title = "Clearing Local Browser Data";
|
||||
currVal = 10;
|
||||
nextVal = 30;
|
||||
await InvokeAsync(StateHasChanged);
|
||||
await MsgServ.ClearLocalStor();
|
||||
await Task.Delay(bDelay);
|
||||
title = "Clearing Session Browser Data";
|
||||
currVal = 30;
|
||||
nextVal = 50;
|
||||
await InvokeAsync(StateHasChanged);
|
||||
await MsgServ.ClearSessionStor();
|
||||
await Task.Delay(bDelay);
|
||||
title = "Final Cache cleanup...";
|
||||
currVal = 50;
|
||||
nextVal = 80;
|
||||
MsgServ.RigaOper = null;
|
||||
MsgServ.LastIdxMacchina = "";
|
||||
await InvokeAsync(StateHasChanged);
|
||||
await Task.Delay(2 * bDelay);
|
||||
// attendo
|
||||
await Task.Delay(1000);
|
||||
title = "Reload!";
|
||||
currVal = 80;
|
||||
nextVal = 100;
|
||||
await InvokeAsync(StateHasChanged);
|
||||
// rimando alla home...
|
||||
await Task.Delay(bDelay);
|
||||
navManager.NavigateTo("", true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2502.2815</h4>
|
||||
<h4>Versione: 6.16.2503.109</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2502.2815
|
||||
6.16.2503.109
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2502.2815</version>
|
||||
<version>6.16.2503.109</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user