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

Commit 4e0fa31

Browse files
author
vikasrohit
committed
SUP-2209, User has past challenges but not able to access the past challenges from dashboard as user do not have any active challenges.
-- Updated explore links back to active challenges page (as per latest comments in the JIRA) -- Updated logic for showing the section containing the buttons for viewing active/past challenges page
1 parent 7e3e06b commit 4e0fa31

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/my-dashboard/my-challenges/my-challenges.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ section.hasChallenges(ng-if="vm.userHasChallenges && !vm.loading", ng-class="{ '
2323

2424
challenge-tile(ng-repeat="challenge in vm.myChallenges | orderBy:registrationEndDate:true", challenge="challenge", view="vm.challengeView", ng-class="vm.challengeView + '-view'")
2525

26-
.my-challenges-links(id="viewAllChallenges", ng-show="vm.userHasChallenges && !vm.loading")
27-
a.active(ui-sref="my-challenges({status: 'active'})") View More
26+
.my-challenges-links(id="viewAllChallenges", ng-show="!vm.neverParticipated && !vm.loading")
27+
a.active(ui-sref="my-challenges({status: 'active'})", ng-if="vm.userHasChallenges") View More
2828

2929
a.past(ui-sref="my-challenges({status: 'completed'})") Past Challenges

app/services/emptyState.service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
description: "You don't have any active challenges. Ready to find your next challenge?",
3939
helpLinks: [{
4040
title: "Explore Open Challenges",
41-
state: "my-challenges({status: 'completed'})",
41+
url: "/challenges/?pageIndex=1",
4242
cssClass: "find-challenges tc-btn tc-btn-s"
4343
}]
4444
},
@@ -73,7 +73,7 @@
7373
description: "You don't have any active challenges. Ready to find your next challenge?",
7474
helpLinks: [{
7575
title: "Explore Open Challenges",
76-
state: "my-challenges({status: 'completed'})",
76+
url: "/challenges/?pageIndex=1",
7777
cssClass: "find-challenges tc-btn tc-btn-s tc-btn-ghost"
7878
}]
7979
},

0 commit comments

Comments
 (0)