@inject HttpClient Client
@inject IDialogService DialogService
@inject LoginService LoginService
@inject NavigationManager NavigationManager
@page "/Cards"
Cards
@if (response is null)
{
@for (uint i = 0; i < 3; i++)
{
}
}
else if (response.Users.Count != 0)
{
if (LoginService.IsAdmin || !LoginService.LoginRequired)
{
@foreach (var user in response.Users)
{
@user.Baid
Show QR Code
Delete Card
Access Code
@user.AccessCode
Edit Profile
High Scores
Dani Dojo
}
}
else
{
@if (!LoginService.IsLoggedIn)
{
Login
Login
@if (!LoginService.OnlyAdmin)
{
Register
}
}
else
{
var user = response.Users[LoginService.GetBaid() - 1];
@user.Baid
Show QR Code
Delete Card
Access Code
@user.AccessCode
Edit Profile
High Scores
Dani Dojo
}
}
}
else
{
No data.
}