X-Git-Url: https://git.auder.net/pieces/Cwda/c_white_queen.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChallengeList.vue;h=1107b58ce023c9207e1555f64e51c38eb0ce859a;hb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;hp=f6d3090e0206dca954be463b7c6338e799516539;hpb=2f258c37c19c5be20ec68695ddfaec2c21f7f0ae;p=vchess.git
diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue
index f6d3090e..1107b58c 100644
--- a/client/src/components/ChallengeList.vue
+++ b/client/src/components/ChallengeList.vue
@@ -1,16 +1,24 @@
div
- table
+ table(v-if="challenges.length > 0")
thead
tr
th {{ st.tr["Variant"] }}
- th {{ st.tr["From"] }}
+ th {{ st.tr["With"] }}
th {{ st.tr["Cadence"] }}
+ th {{ st.tr["Random?"] }}
tbody
- tr(v-for="c in sortedChallenges" :class="{toyou:c.priority==1,fromyou:c.priority==2}" @click="$emit('click-challenge',c)")
+ tr(
+ v-for="c in sortedChallenges"
+ :class="{toyou:c.priority==1,fromyou:c.priority==2}"
+ @click="$emit('click-challenge',c)"
+ )
td {{ c.vname }}
- td {{ c.from.name || "@nonymous" }}
+ td {{ withWho(c) }}
td {{ c.cadence }}
+ td(:class="getRandomnessClass(c)")
+ p(v-else)
+ | {{ st.tr["No challenges found :( Click on 'New game'!"] }}