Sistemati filtri

This commit is contained in:
2025-07-31 15:24:45 +02:00
parent 068723f31f
commit 8dfb163cfa
8 changed files with 63 additions and 32 deletions

View File

@@ -1,22 +1,24 @@
@page "/"
@using salesbook.Shared.Core.Interface
@attribute [Authorize]
@using salesbook.Shared.Core.Interface
@using salesbook.Shared.Components.Layout.Spinner
@inject IFormFactor FormFactor
@inject INetworkService NetworkService
<SpinnerLayout FullScreen="true" />
@code
{
protected override Task OnInitializedAsync()
protected override async Task OnInitializedAsync()
{
var lastSyncDate = LocalStorage.Get<DateTime>("last-sync");
if (!FormFactor.IsWeb() && NetworkService.IsNetworkAvailable() && lastSyncDate.Equals(DateTime.MinValue))
{
NavigationManager.NavigateTo("/sync");
return base.OnInitializedAsync();
return;
}
NavigationManager.NavigateTo("/Calendar");
return base.OnInitializedAsync();
}
}