Fix Information Button Disable rule | Add Entry In UserCard
This commit is contained in:
parent
db71975b4e
commit
b1ce6003fb
@ -46,8 +46,7 @@
|
||||
</MudCardContent>
|
||||
<MudCardActions>
|
||||
<MudStack Row="true" Style="width:100%" Spacing="4" Justify="Justify.FlexEnd">
|
||||
<MudButton Disabled=@CanParticipateChallengeCompetition()
|
||||
OnClick=@(_ => AnswerChallenge(true))>@Localizer["Information"]</MudButton>
|
||||
<MudButton OnClick=@(_ => AnswerChallenge(true))>@Localizer["Information"]</MudButton>
|
||||
@if (ChallengeCompetition.CompeteMode == CompeteModeType.Chanllenge)
|
||||
{
|
||||
@if (Baid == 0 || ChallengeCompetition?.Baid == Baid || ChallengeCompetition?.State != CompeteState.Waiting)
|
||||
|
@ -73,6 +73,14 @@
|
||||
</MudMenuItem>
|
||||
<MudDivider />
|
||||
}
|
||||
<MudNavLink Href="@($"ChallengeCompe/{User.Baid}/Challenge")" Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.People" IconColor="Color.Warning">
|
||||
<span style="padding-left: 20px;">@Localizer["Challenge"]</span>
|
||||
</MudNavLink>
|
||||
<MudDivider />
|
||||
<MudNavLink Href="@($"ChallengeCompe/{User.Baid}/Competition")" Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.WorkspacePremium" IconColor="Color.Warning">
|
||||
<span style="padding-left: 20px;">@Localizer["Competition"]</span>
|
||||
</MudNavLink>
|
||||
<MudDivider />
|
||||
@if (AuthService.AllowUserDelete)
|
||||
{
|
||||
<MudMenuItem Icon="@Icons.Material.Filled.Delete"
|
||||
|
Loading…
Reference in New Issue
Block a user