Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #521 from blockchain/remove-survey
Browse files Browse the repository at this point in the history
Remove survey link from wallet home
  • Loading branch information
plondon authored Jul 26, 2016
2 parents 519a085 + 9246f30 commit 85e5b80
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/templates/did-you-know.jade
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.dyk
.flex-between.flex-center.mbl
h5.mvn.type-h5.em-400(translate="CONTRIBUTE")
h5.mvn.type-h5.em-400(translate="DYK")
.hashtag.em-400.em-alt.flex-center(ng-class="dyk.type.toLowerCase()")
| {{ dyk.type | translate }}
.widget
Expand Down
2 changes: 1 addition & 1 deletion assets/js/directives/did-you-know.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ function didYouKnow (DidYouKnow) {
return directive;

function link (scope, elem, attrs) {
scope.dyk = DidYouKnow.getSurvey();
scope.dyk = DidYouKnow.getRandom();
}
}
22 changes: 12 additions & 10 deletions assets/js/services/didYouKnow.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,24 @@ function DidYouKnow () {
type: 'EDUCATIONAL',
text: 'DYK_BTC_VALUE',
icon: 'ti-stats-up'
}, {
id: 5,
title: 'SEND_FEEDBACK',
type: 'SURVEY',
text: 'DYK_FEEDBACK_VALUE',
icon: 'ti-announcement',
linkText: 'SHARE_FEEDBACK',
external: true,
state: 'https://blockchain.co1.qualtrics.com/SE/?SID=SV_0PMH4ruxU5krOmh'
}
];

const survey = {
id: 5,
title: 'SEND_FEEDBACK',
type: 'SURVEY',
text: 'DYK_FEEDBACK_VALUE',
icon: 'ti-announcement',
linkText: 'SHARE_FEEDBACK',
external: true,
state: 'https://blockchain.co1.qualtrics.com/SE/?SID=SV_0PMH4ruxU5krOmh'
};

const service = {
getAll: () => dyks, // Only used for tests
getRandom: () => dyks[getRandInRange(0, dyks.length - 1)],
getSurvey: () => dyks[4]
getSurvey: () => survey
};
return service;
}
2 changes: 1 addition & 1 deletion tests/directives/did-you-know.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe "Did You Know directive", ->
# linkText: 'SECURITY',
# state: 'wallet.common.settings.security'
# }
spyOn(DidYouKnow, "getSurvey").and.returnValue {
spyOn(DidYouKnow, "getRandom").and.returnValue {
id: 5,
title: 'SEND_FEEDBACK',
type: 'SURVEY',
Expand Down

0 comments on commit 85e5b80

Please sign in to comment.