fix grafico utente + sistemato flush cache
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user