X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChallengeList.vue;h=0b7581bf1e22c87d49136e1cb42231ba05944db5;hb=0b0dc040acd01ff1855b159c2933cb2eff73b26d;hp=8951226b53e036d8289fdd425e55bf8a453ae394;hpb=03608482744c433ad284f4b61e85b2e8cff4f5f3;p=vchess.git diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue index 8951226b..0b7581bf 100644 --- a/client/src/components/ChallengeList.vue +++ b/client/src/components/ChallengeList.vue @@ -5,19 +5,38 @@ table th From th To th Cadence - tr(v-for="c in challenges" @click="$emit('click-challenge',c)") + tr(v-for="c in sortedChallenges" @click="$emit('click-challenge',c)") td {{ c.vname }} td {{ c.from.name }} - td(v-if="c.to[0].id > 0") - span(v-for="p in c.to") {{ p.name }} - td(v-else) {{ c.nbPlayers - 1 }} player{{ c.nbPlayers >= 3 ? 's' : '' }} + td {{ c.to }} td {{ c.timeControl }}