bozza btn in top che non vanno
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
@inherits LayoutComponentBase
|
||||
@using NLog;
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
@inject NavigationManager NavMan
|
||||
@inject ListSelectDataSrv MDataService
|
||||
@inject SharedMemService MStor
|
||||
|
||||
<div class="page">
|
||||
|
||||
|
||||
<main>
|
||||
<div class="top-row d-flex justify-content-between">
|
||||
<div class="col-4">
|
||||
<span>
|
||||
<button class="btn btn-sm @ResetClass" @onclick="ForceReload" title="Update"><i class="fa-solid fa-rotate"></i></button>
|
||||
<button class="btn btn-sm @ResetClass" @onclick="() => ForceReload()" title="Update"><i class="fa-solid fa-rotate"></i></button>
|
||||
Username
|
||||
</span>
|
||||
<sub>[999]</sub>
|
||||
@@ -22,6 +21,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-4 text-end">
|
||||
<button class="btn btn-sm btn-dark" @onclick="() => OnYes()">Yes!</button>
|
||||
@* <div class="row w-100 slideMen"> *@
|
||||
<div class="row w-100 slideMen">
|
||||
<div class="">
|
||||
@@ -81,8 +81,11 @@
|
||||
await Task.Delay(1);
|
||||
}
|
||||
|
||||
private static Logger Log = LogManager.GetCurrentClassLogger();
|
||||
|
||||
protected async Task ForceReload()
|
||||
{
|
||||
Log.Info("Start ForceReload");
|
||||
ResetClass = "btn-warning";
|
||||
await InvokeAsync(StateHasChanged);
|
||||
await MDataService.FlushCache();
|
||||
@@ -90,5 +93,12 @@
|
||||
await Task.Delay(200);
|
||||
ResetClass = "btn-primary";
|
||||
await InvokeAsync(StateHasChanged);
|
||||
Log.Info("END ForceReload");
|
||||
}
|
||||
|
||||
|
||||
private void OnYes()
|
||||
{
|
||||
Console.WriteLine($"{DateTime.Now} | 'Yes' button selected.");
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,6 @@
|
||||
<ItemGroup>
|
||||
<Compile Remove="DatabaseModels\TurniPareto.cs" />
|
||||
<Compile Remove="DatabaseModels\TurniParetoOdl.cs" />
|
||||
<Compile Remove="Services\MessageService.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user