Reload app after login
This commit is contained in:
@@ -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!;
|
||||
}
|
||||
Reference in New Issue
Block a user