1
0
mirror of synced 2025-02-25 22:38:09 +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> </MudCardContent>
<MudCardActions> <MudCardActions>
<MudStack Row="true" Style="width:100%" Spacing="4" Justify="Justify.FlexEnd"> <MudStack Row="true" Style="width:100%" Spacing="4" Justify="Justify.FlexEnd">
<MudButton Disabled=@CanParticipateChallengeCompetition() <MudButton OnClick=@(_ => AnswerChallenge(true))>@Localizer["Information"]</MudButton>
OnClick=@(_ => AnswerChallenge(true))>@Localizer["Information"]</MudButton>
@if (ChallengeCompetition.CompeteMode == CompeteModeType.Chanllenge) @if (ChallengeCompetition.CompeteMode == CompeteModeType.Chanllenge)
{ {
@if (Baid == 0 || ChallengeCompetition?.Baid == Baid || ChallengeCompetition?.State != CompeteState.Waiting) @if (Baid == 0 || ChallengeCompetition?.Baid == Baid || ChallengeCompetition?.State != CompeteState.Waiting)

View File

@ -73,6 +73,14 @@
</MudMenuItem> </MudMenuItem>
<MudDivider /> <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) @if (AuthService.AllowUserDelete)
{ {
<MudMenuItem Icon="@Icons.Material.Filled.Delete" <MudMenuItem Icon="@Icons.Material.Filled.Delete"