Joined and Owned Challenges should still appear in Discover, but annotated with status (#9956)

This commit is contained in:
Marvin Rabe
2018-05-07 16:03:15 +02:00
parent 1896a8fab0
commit 0d84643961
5 changed files with 28 additions and 18 deletions

View File

@@ -15,7 +15,7 @@
.svg-icon.positive-icon(v-html="icons.positiveIcon")
span(v-once) {{$t('createChallenge')}}
.row
.col-12.col-md-6(v-for='challenge in filteredChallenges', v-if='!memberOf(challenge)')
.col-12.col-md-6(v-for='challenge in filteredChallenges')
challenge-item(:challenge='challenge')
.row
.col-12.text-center
@@ -105,9 +105,6 @@ export default {
},
},
methods: {
memberOf (challenge) {
return this.user.challenges.indexOf(challenge._id) !== -1;
},
updateSearch (eventData) {
this.search = eventData.searchTerm;
this.page = 0;