fix some detail
This commit is contained in:
parent
b1ce6003fb
commit
fd899dc648
@ -66,10 +66,10 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<MudButtonGroup Color="Color.Primary" Variant="Variant.Filled">
|
||||
<MudButton Disabled="@(Baid == 0 || (ChallengeCompetition?.State == CompeteState.Waiting && ChallengeCompetition?.Baid == Baid))"
|
||||
<MudButtonGroup Color="Color.Primary" Variant="Variant.Filled" OverrideStyles="false">
|
||||
<MudButton Color="Color.Success" Variant="Variant.Filled" Disabled="@(Baid == 0 || (ChallengeCompetition?.State == CompeteState.Waiting && ChallengeCompetition?.Baid == Baid))"
|
||||
OnClick=@(_ => AnswerChallenge(true))>@Localizer["Accept"]</MudButton>
|
||||
<MudButton Disabled="@(Baid == 0 || (ChallengeCompetition?.State == CompeteState.Waiting && ChallengeCompetition?.Baid == Baid))"
|
||||
<MudButton Color="Color.Error" Variant="Variant.Filled" Disabled="@(Baid == 0 || (ChallengeCompetition?.State == CompeteState.Waiting && ChallengeCompetition?.Baid == Baid))"
|
||||
OnClick=@(_ => AnswerChallenge(false))>@Localizer["Reject"]</MudButton>
|
||||
</MudButtonGroup>
|
||||
}
|
||||
@ -90,7 +90,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<MudButton OnClick="AnswerCompete">@Localizer["Participate"]</MudButton>
|
||||
<MudButton OnClick="AnswerCompete" Color="Color.Success" Variant="Variant.Filled">@Localizer["Participate"]</MudButton>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -24,16 +24,16 @@
|
||||
Variant="Variant.Outlined"
|
||||
Adornment="Adornment.Start"
|
||||
AdornmentIcon="@Icons.Material.Filled.Search" Style="width: 100%"/>
|
||||
@if (Mode == 1) {
|
||||
<MudButton Variant="Variant.Filled" Size="Size.Large" StartIcon="@Icons.Material.Filled.Add" Color="Color.Tertiary" Disabled="@(Baid==0)" OnClick=@(_ => OpenDialogAsync(1, 1)) Style="width: 80px">@Localizer["Add"]</MudButton>
|
||||
@if (Mode == 1 && Baid != 0) {
|
||||
<MudButton Variant="Variant.Filled" Size="Size.Large" StartIcon="@Icons.Material.Filled.Add" Color="Color.Tertiary" OnClick=@(_ => OpenDialogAsync(1, 1)) Style="width: 80px">@Localizer["Add"]</MudButton>
|
||||
}
|
||||
else if (Mode == 2)
|
||||
else if (Mode == 2 && Baid != 0)
|
||||
{
|
||||
<MudButton Variant="Variant.Filled" Size="Size.Large" StartIcon="@Icons.Material.Filled.Add" Color="Color.Tertiary" Disabled="@(Baid==0)" OnClick=@(_ => OpenDialogAsync(2, 3)) Style="width: 80px">@Localizer["Add"]</MudButton>
|
||||
<MudButton Variant="Variant.Filled" Size="Size.Large" StartIcon="@Icons.Material.Filled.Add" Color="Color.Tertiary" OnClick=@(_ => OpenDialogAsync(2, 3)) Style="width: 80px">@Localizer["Add"]</MudButton>
|
||||
}
|
||||
else if (Mode == 3)
|
||||
else if (Mode == 3 && Baid == 0)
|
||||
{
|
||||
<MudButton Variant="Variant.Filled" Size="Size.Large" StartIcon="@Icons.Material.Filled.Add" Color="Color.Tertiary" Disabled="@(Baid!=0)" OnClick=@(_ => OpenDialogAsync(3, 3)) Style="width: 80px">@Localizer["Add"]</MudButton>
|
||||
<MudButton Variant="Variant.Filled" Size="Size.Large" StartIcon="@Icons.Material.Filled.Add" Color="Color.Tertiary" OnClick=@(_ => OpenDialogAsync(3, 3)) Style="width: 80px">@Localizer["Add"]</MudButton>
|
||||
}
|
||||
</MudStack>
|
||||
</div>
|
||||
|
@ -30,6 +30,16 @@
|
||||
<MudNavLink Href="@($"Users/{baid}/PlayHistory")" Match="NavLinkMatch.All">@Localizer["Play History"]</MudNavLink>
|
||||
<MudNavLink Href="@($"Users/{baid}/DaniDojo")" Match="NavLinkMatch.All">@Localizer["Dani Dojo"]</MudNavLink>
|
||||
</MudNavGroup>
|
||||
}
|
||||
|
||||
<MudNavGroup Title=@Localizer["Challenge Competition Data"] Expanded="true" Icon="@Icons.Material.Filled.EmojiEvents">
|
||||
<MudNavLink Href="@($"ChallengeCompe/{baid}/Challenge")" Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.People">@Localizer["Challenge"]</MudNavLink>
|
||||
<MudNavLink Href="@($"ChallengeCompe/{baid}/Competition")" Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.WorkspacePremium">@Localizer["Competition"]</MudNavLink>
|
||||
<MudNavLink Href="@($"ChallengeCompe/{baid}/OfficialCompetition")" Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.EmojiEvents">@Localizer["Official Competition"]</MudNavLink>
|
||||
</MudNavGroup>
|
||||
|
||||
if (AuthService.IsLoggedIn)
|
||||
{
|
||||
<MudNavGroup Title=@Localizer["Settings"] Expanded="settingsOpen" Icon="@Icons.Material.Filled.Settings">
|
||||
<MudNavLink OnClick="ShowQrCode">@Localizer["Show QR Code"]</MudNavLink>
|
||||
<MudNavLink Href="/ChangePassword" Match="NavLinkMatch.All">@Localizer["Change Password"]</MudNavLink>
|
||||
@ -43,14 +53,6 @@
|
||||
<MudNavLink Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.Logout" IconColor="Color.Error" OnClick="Logout">@Localizer["Log Out"]</MudNavLink>
|
||||
}
|
||||
}
|
||||
|
||||
@{
|
||||
<MudNavGroup Title=@Localizer["Challenge Competition Data"] Expanded="true" Icon="@Icons.Material.Filled.EmojiEvents">
|
||||
<MudNavLink Href="@($"ChallengeCompe/{baid}/Challenge")" Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.People">@Localizer["Challenge"]</MudNavLink>
|
||||
<MudNavLink Href="@($"ChallengeCompe/{baid}/Competition")" Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.WorkspacePremium">@Localizer["Competition"]</MudNavLink>
|
||||
<MudNavLink Href="@($"ChallengeCompe/{baid}/OfficialCompetition")" Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.EmojiEvents">@Localizer["Official Competition"]</MudNavLink>
|
||||
</MudNavGroup>
|
||||
}
|
||||
</MudNavMenu>
|
||||
|
||||
@code {
|
||||
|
@ -81,6 +81,10 @@
|
||||
<span style="padding-left: 20px;">@Localizer["Competition"]</span>
|
||||
</MudNavLink>
|
||||
<MudDivider />
|
||||
<MudNavLink Href="@($"ChallengeCompe/{User.Baid}/OfficialCompetition")" Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.EmojiEvents" IconColor="Color.Warning">
|
||||
<span style="padding-left: 20px;">@Localizer["Official Competition"]</span>
|
||||
</MudNavLink>
|
||||
<MudDivider />
|
||||
@if (AuthService.AllowUserDelete)
|
||||
{
|
||||
<MudMenuItem Icon="@Icons.Material.Filled.Delete"
|
||||
|
Loading…
Reference in New Issue
Block a user