@inject HttpClient Client @inject IDialogService DialogService @inject LoginService LoginService @inject NavigationManager NavigationManager @using TaikoWebUI.Pages.Components @page "/Users" @Localizer["users"] @if (response is not null) { // Response received and users are available if (response.Users.Count != 0) { if (LoginService.IsAdmin || !LoginService.LoginRequired) // Admin mode, can see all users { @foreach (var user in response.Users) { } } else { // Not admin, redirect @if (!LoginService.IsLoggedIn) // Not logged in, show login form { NavigationManager.NavigateTo("/Login"); } else { NavigationManager.NavigateTo("/"); } } } else { // No users in the database @Localizer["No data."] } } else { // Loading... @for (uint i = 0; i < 6; i++) { } }