Fix async onclick event
This commit is contained in:
parent
8aec1b4717
commit
296820e276
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user