X-Git-Url: https://git.auder.net/doc/current/git-logo.png?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChallengeList.vue;h=b3c43e2a803751b0b602e2e085278a01a515d719;hb=bd76b45611cbb58dcf774745a4d690277a82aacd;hp=85005157c049140713a864a8ebacf6375053e7c7;hpb=bb7dd7db3df3d1a0445dcd5e0840a2ce79b53297;p=vchess.git
diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue
index 85005157..b3c43e2a 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 }}
-