Skip to content

Commit

Permalink
Merge pull request #9 from mcbeev/dsd-updates
Browse files Browse the repository at this point in the history
Dsd updates
  • Loading branch information
mcbeev authored Dec 12, 2023
2 parents 92e47ec + 05afea5 commit 481cc31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Components/LeaderboardList.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ else
<ol>
@if (Teams != null)
{
@foreach (var team in Teams.OrderBy(x => x.TeamScore).ThenBy(y => y.TeamFramesLeft))
@foreach (var team in Teams.OrderByDescending(x => x.TeamScore).ThenBy(y => y.TeamFramesLeft))
{
<TeamScoreBoardItem Team="@team" />
}
Expand All @@ -24,4 +24,4 @@ else
Teams = await TeamService.GetAllTeamsAsync();
StateHasChanged(); // Request the component to re-render
}
}
}
1 change: 0 additions & 1 deletion Components/TeamCard.razor
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ else
{

<h3 class="card-title">Current Score: @Team.TeamScore</h3>
<!-- <span class="team-current-frames-left">Frames: @(10-Team.TeamFramesLeft) completed (@Team.TeamFramesLeft left)</span> -->
<div class="cta col">
<button class="btn btn-primary dim" role="button" @onclick="@(() => DecrementScore())" disabled="@IsDisabled"><span class="oi oi-minus"></span> Point</button>
<button class="btn btn-primary" role="button" @onclick="@(() => IncrementScore())" disabled="@IsDisabled"><span class="oi oi-plus"></span> Point</button>
Expand Down

0 comments on commit 481cc31

Please sign in to comment.