Migliorata sincronizzazione dei dati

This commit is contained in:
2025-09-03 17:26:55 +02:00
parent 374b99501e
commit 8508820350
6 changed files with 107 additions and 60 deletions

View File

@@ -2,8 +2,10 @@
@attribute [Authorize]
@using salesbook.Shared.Core.Interface
@using salesbook.Shared.Components.Layout.Spinner
@using salesbook.Shared.Core.Services
@inject IFormFactor FormFactor
@inject INetworkService NetworkService
@inject PreloadService PreloadService
<SpinnerLayout FullScreen="true" />
@@ -19,6 +21,15 @@
return;
}
_ = StartSyncUser();
NavigationManager.NavigateTo("/Calendar");
}
private Task StartSyncUser()
{
return Task.Run(() =>
{
_ = PreloadService.PreloadUsersAsync();
});
}
}