@inject HttpClient Client @inject AuthService AuthService @inject NavigationManager NavigationManager @inject BreadcrumbsStateContainer BreadcrumbsStateContainer @using TaikoWebUI.Components; @page "/Users" @if (!AuthService.LoginRequired || (AuthService.LoginRequired && AuthService.IsAdmin)) {
@if (isLoading || 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) {
}