fix grafico utente + sistemato flush cache

This commit is contained in:
zaccaria.majid
2022-11-17 17:58:04 +01:00
parent 401d637a59
commit cb3af97a65
2 changed files with 16 additions and 2 deletions
+12 -2
View File
@@ -7,10 +7,20 @@
<div class="d-flex w-100 justify-content-between">
<div class="px-2 py-1">
<i class="fas fa-user-alt"></i> <b>@userName</b>
@if (userName != "0")
{
<button class="btn btn-primary btn-sm mx-1" @onclick="() => LogOut()" title="Forza Refresh Dati correnti"> LogOut </button>
<div class="input-group text-truncate">
<div class="input-group-prepend">
<a title="LogOut" class="btn btn-sm btn-danger" @onclick="() => LogOut()"><i class="fas fa-sign-out-alt"></i></a>
</div>
<a title="Gestione account @userName" class="btn btn-sm btn-outline-dark mx-0 px-1" disabled>
<i class="fas fa-user-alt"></i> <b>@userName</b>
</a>
</div>
}
else
{
}
</div>
<div class="pe-2">
+4
View File
@@ -3,6 +3,7 @@ using Blazored.LocalStorage;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
using MP.Data.DTO;
using MP.INVE.Data;
namespace MP.INVE.Components
{
@@ -14,6 +15,7 @@ namespace MP.INVE.Components
{
await Task.Delay(1);
await Task.Delay(1);
await MIDataService.FlushRedisCache();
// rimando a pagina corrente
NavManager.NavigateTo(NavManager.Uri, true);
}
@@ -31,6 +33,8 @@ namespace MP.INVE.Components
[Inject]
protected IJSRuntime JSRuntime { get; set; } = null!;
[Inject]
protected MiDataService MIDataService{ get; set; } = null!;
#endregion Protected Properties