Migliorata sincronizzazione dei dati
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user