X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FChallengeList.vue;h=f6d3090e0206dca954be463b7c6338e799516539;hb=9ef63965401837983286ac6a95767af3923405fe;hp=85005157c049140713a864a8ebacf6375053e7c7;hpb=bb7dd7db3df3d1a0445dcd5e0840a2ce79b53297;p=vchess.git
diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue
index 85005157..f6d3090e 100644
--- a/client/src/components/ChallengeList.vue
+++ b/client/src/components/ChallengeList.vue
@@ -1,26 +1,58 @@
-table
- tr
- th Variant
- th From
- th To
- th Cadence
- tr(v-for="c in challenges" @click="$emit('click-challenge',c)")
- td {{ c.vname }}
- td {{ c.from.name }}
- td(v-if="!!c.to[0]")
- span(v-for="pname in c.to") {{ pname }}
- td(v-else) {{ c.to.length - 1 }} player{{ c.to.length >= 3 ? 's' : '' }}
- td {{ c.timeControl }}
+div
+ table
+ thead
+ tr
+ th {{ st.tr["Variant"] }}
+ th {{ st.tr["From"] }}
+ th {{ st.tr["Cadence"] }}
+ tbody
+ 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 {{ c.cadence }}
-