@inject HttpClient Client @inject AuthService AuthService @inject NavigationManager NavigationManager @using TaikoWebUI.Components @page "/Users" @Localizer["Users"] @if (!AuthService.LoginRequired || (AuthService.LoginRequired && AuthService.IsAdmin)) { if (usersWithSettings == null) { // Loading... for (uint i = 0; i < 6; i++) { } } else if (usersWithSettings.Count > 0) { foreach (var (user, userSetting) in usersWithSettings) { } } 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("/"); }