82e837a856
- Fix hang x call async - fix reset su dati amncanti - aggiunto controllo server-health preliminare
51 lines
1.0 KiB
C#
51 lines
1.0 KiB
C#
using EgwControlCenter.Core;
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.JSInterop;
|
|
|
|
namespace EgwControlCenter.App.Components.Pages
|
|
{
|
|
public partial class Index
|
|
{
|
|
#region Protected Properties
|
|
|
|
[Inject]
|
|
protected AppControlService ACService { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected async Task ForceCheck()
|
|
{
|
|
await ACService.DoFullCheckAsync(true);
|
|
}
|
|
|
|
protected async Task SetupMode(bool reqSetup)
|
|
{
|
|
ReqSetup = reqSetup;
|
|
if (!ReqSetup)
|
|
{
|
|
await ForceCheck();
|
|
}
|
|
}
|
|
|
|
protected void ToggleSetup()
|
|
{
|
|
ReqSetup = !ReqSetup;
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Private Fields
|
|
|
|
private bool isLoading = false;
|
|
|
|
#endregion Private Fields
|
|
|
|
#region Private Properties
|
|
|
|
private bool ReqSetup { get; set; } = false;
|
|
|
|
#endregion Private Properties
|
|
}
|
|
} |