Fix scomparsa bottone snapshot fatto

This commit is contained in:
zaccaria.majid
2022-09-27 11:36:51 +02:00
parent 08901bcebc
commit 3bc3746a9d
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -31,6 +31,9 @@
@if (snapshotDone)
{
<button class="btn btn-success" type="button" @onclick="() => navDossier()">
<div class="spinner-border spinner-border-sm" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<i class="fa-solid fa-camera"></i>
Fatto! Mostra Dossier
</button>
+7
View File
@@ -1,5 +1,6 @@
using Microsoft.AspNetCore.Components;
using MP.SPEC.Data;
using System.Runtime.CompilerServices;
namespace MP.SPEC.Components
{
@@ -43,6 +44,12 @@ namespace MP.SPEC.Components
aTimer.Stop();
aTimer.Enabled = false;
//reportChange();
var pUpd = Task.Run(async () =>
{
await Task.Delay(1);
await InvokeAsync(() => StateHasChanged());
});
pUpd.Wait();
}
#endregion Public Methods