feat: implement admin dashboard with authentication, session monitoring, and user management UI
This commit is contained in:
@@ -45,10 +45,18 @@
|
||||
</div>
|
||||
|
||||
@code {
|
||||
protected override async Task OnInitializedAsync()
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
AuthService.OnAuthStateChanged += StateHasChanged;
|
||||
await AuthService.InitializeAsync();
|
||||
}
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
await AuthService.InitializeAsync();
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private async Task LogoutAdmin()
|
||||
|
||||
Reference in New Issue
Block a user