Reload app after login

This commit is contained in:
2026-04-14 19:51:52 +02:00
parent 9278e59825
commit 5c62fb5bbb
3 changed files with 26 additions and 3 deletions

View File

@@ -39,9 +39,9 @@ public partial class Home
private Task OnLoggedInAsync()
{
CurrentView = HomeViewMode.Workspace;
ClearStatus();
return InvokeAsync(StateHasChanged);
Navigation.NavigateTo("/", forceLoad: true);
return Task.CompletedTask;
}
private Task OnLoggedOutAsync(string? message)
@@ -77,4 +77,7 @@ public partial class Home
[Inject]
private RpgRollerApiClient ApiClient { get; set; } = null!;
[Inject]
private NavigationManager Navigation { get; set; } = null!;
}