1
0
mirror of synced 2025-01-19 00:04:05 +01:00

Fix access code page

This commit is contained in:
shiibe 2024-06-05 11:58:07 -04:00
parent 96b175138a
commit a9b91fb1b6
2 changed files with 2 additions and 10 deletions

View File

@ -43,15 +43,7 @@ public partial class AccessCode
private async Task InitializeUser()
{
if (!AuthService.LoginRequired)
{
var users = await Client.GetFromJsonAsync<List<User>>("api/Users");
if (users != null) User = users.FirstOrDefault(u => u.Baid == Baid);
}
else if (AuthService.IsLoggedIn)
{
User = await Client.GetFromJsonAsync<User>($"api/Users/{Baid}");
}
User = await Client.GetFromJsonAsync<User>($"api/Users/{Baid}");
}
private async Task DeleteAccessCode(string accessCode)

View File

@ -12,7 +12,7 @@
if (isLoading == true || response == null)
{
// Loading...
for (uint i = 0; i < 12; i++) {
for (uint i = 0; i < pageSize; i++) {
<MudItem xs="12" md="6" lg="4" xl="3">
<MudCard Outlined="true">
<MudCardContent>