Skip to content

Commit

Permalink
Fixed a bug that made it impossible to add manual team bonuses if the…
Browse files Browse the repository at this point in the history
… team hadn't finished any challenges. (#181)
  • Loading branch information
sei-bstein committed Apr 8, 2024
1 parent 6af1b29 commit ed83bf0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div class="manage-manual-challenge-bonuses-component m-4" *ngIf="teamScoreData">
<table *ngIf="hasStartedChallenges" class="table table-striped border-bottom border-info">
<table *ngIf="hasStartedChallenges || teamScoreData.score.manualBonuses.length"
class="table table-striped border-bottom border-info">
<thead class="h5">
<th scope="col" width="30%">Challenge</th>
<th class="text-center" scope="col" width="10%"></th>
Expand Down Expand Up @@ -109,7 +110,7 @@ <h6>{{ challengeSummary.score.totalScore }}</h6>

<div class="add-bonus-container mt-5">
<h3 class="mt-3 mb-2">Add a bonus</h3>
<form #newBonusForm (submit)="onSubmit()" *ngIf="hasStartedChallenges">
<form #newBonusForm (submit)="onSubmit()">
<div class="form-group w-100 px-0">
<select *ngIf="hasStartedChallenges; else noChallengesStarted"
class="form-control form-control-lg w-100" name="challengeId"
Expand Down Expand Up @@ -140,7 +141,7 @@ <h3 class="mt-3 mb-2">Add a bonus</h3>
</div>

<ng-template #noChallengesStarted>
<div class="no-challenges-started-message">
<div class="no-challenges-started-message text-muted">
This team hasn't launched any challenges yet, so you can't attach manual bonuses
to specific challenges yet. You can still create a team-based manual bonus.
</div>
Expand Down

0 comments on commit ed83bf0

Please sign in to comment.