1
0
mirror of synced 2024-11-30 17:24:33 +01:00

Fix Information Button Disable rule | Add Entry In UserCard

This commit is contained in:
ptmaster 2024-09-16 20:59:36 +08:00
parent db71975b4e
commit b1ce6003fb
2 changed files with 9 additions and 2 deletions

View File

@ -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)

View File

@ -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"