@inject HttpClient Client
@inject AuthService AuthService
@inject NavigationManager NavigationManager
@using TaikoWebUI.Components;
@page "/Users"
@Localizer["Users"]
@if (!AuthService.LoginRequired || (AuthService.LoginRequired && AuthService.IsAdmin)) {
if (isLoading == true || response == null)
{
// Loading...
for (uint i = 0; i < pageSize; i++) {
}
} else if (response.Users.Count > 0) {
foreach (var user in response.Users)
{
}
} else { // No users in the database
@Localizer["No data."]
}
} else if (AuthService.LoginRequired && !AuthService.IsLoggedIn) {
// Not logged in, redirect
NavigationManager.NavigateTo("/Login");
} else {
NavigationManager.NavigateTo("/");
}
@if (response != null && TotalPages > 1)
{
}