Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 281dbe0

Browse files
author
vikasrohit
committedOct 24, 2015
SUP-2231, New Empty States for Dashboard and Profile, 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 the text for upsell buttons along with pointing the "Explore Open Challenges" button to point to My Challenges with Past filter to be consistent with dashboard. However, the use case should never appear where we show the empty state for past challenges.
1 parent afef7f0 commit 281dbe0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎app/directives/empty-state-placeholder/empty-state-placeholder.directive.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
var vm = this;
2121
vm.title = $scope.title;
2222
vm.description = $scope.description;
23-
console.log($scope.show);
2423
vm.show = _.get($scope, 'show', false);
2524

2625
activate();

‎app/my-challenges/my-challenges.jade

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
empty-state-placeholder(title="Past Challenges", description="You have not participated in any challenges yet.", show="vm.statusFilter === 'completed'")
2929
.info-links
3030
a.find-challenges.tc-btn.tc-btn-s(ng-href="https://www.{{DOMAIN}}/challenges/?pageIndex=1") Find Challenges
31-
empty-state-placeholder(title="Active Challenges", description="There are no active challenges.", show="vm.statusFilter === 'active'")
31+
a.learn-more(href="https://www.{{DOMAIN}}/member-onboarding") Learn More
32+
empty-state-placeholder(title="Active Challenges", description="You don't have any active challenges. Ready to find your next challenge?", show="vm.statusFilter === 'active'")
3233
.info-links
33-
a.find-challenges.tc-btn.tc-btn-s(ng-href="https://www.{{DOMAIN}}/challenges/?pageIndex=1") Find Challenges
34+
a.find-challenges.tc-btn.tc-btn-s(ng-click="vm.changeFilter('completed')") Explore Open Challenges
3435

3536
.hasChallenges(ng-show="vm.myChallenges.length", state="vm.loading")
3637

0 commit comments

Comments
 (0)
This repository has been archived.