1
0
mirror of synced 2025-02-20 04:31:24 +01:00

Fix async onclick event

This commit is contained in:
shiibe 2025-02-15 15:10:53 -05:00
parent 8aec1b4717
commit 296820e276

View File

@ -62,22 +62,18 @@
<MudTd>
@if (AuthService.IsAdmin)
{
<MudStack Row="true" Class="pointer" onclick="@{
() => UserChanged(context)
}" AlignItems="AlignItems.Baseline">
<MudStack Row="true" Class="pointer" AlignItems="AlignItems.Baseline" onclick="@(async () => await UserChanged(context))">
<MudText Typo="Typo.body1">@context.UserName</MudText>
<MudText Typo="Typo.caption" Style="color: #9E9E9E">(@Localizer["ID"]: @context.Baid)</MudText>
</MudStack>
<MudText Typo="Typo.caption" Style="color: #9E9E9E">(@Localizer["ID"]: @context.Baid)</MudText>
</MudStack>
}
else
{
<MudStack Row="true" AlignItems="AlignItems.Baseline">
<MudText Typo="Typo.body1">@context.UserName</MudText>
<MudText Typo="Typo.caption" Style="color: #9E9E9E">(@Localizer["ID"]: @context.Baid)</MudText>
</MudStack>
<MudText Typo="Typo.caption" Style="color: #9E9E9E">(@Localizer["ID"]: @context.Baid)</MudText>
</MudStack>
}
</MudTd>
<MudTd>@context.BestScore</MudTd>
<MudTd>