Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 8b4ee72

Browse files
committed
Small modification of condition to show the Challenge Docs download link
Now the link should be visible for all active challenge, no matter what phase they are in. Note that there are additional coniditions added in the HTML markup here: src/js/app/challenge-details/partials/ng-content- challenge-downloads.tpl.html which also demand the user to be logged in and registered (different messages are shown instead of the link, if it is not true).
1 parent 52015e4 commit 8b4ee72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/app/challenge-details/js/controllers/challenge-details-controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
challengeName = challenge.challengeName;
276276
var reviewScorecardId = challenge.reviewScorecardId;
277277
vm.isDesign = (challengeType === 'design');
278-
vm.allowDownloads = challenge.currentStatus === 'Active' && challenge.currentPhaseRemainingTime > 0;
278+
vm.allowDownloads = challenge.currentStatus === 'Active';
279279

280280
if ((challenge.currentPhaseName != 'Stalled' && challenge.checkpointSubmissionEndDate && challenge.checkpointSubmissionEndDate != '') || (challenge.checkpoints && challenge.checkpoints.length > 0)) {
281281
ChallengeService

0 commit comments

Comments
 (0)