X-Git-Url: https://git.auder.net/pieces/Checkered/cb.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChallengeList.vue;h=1107b58ce023c9207e1555f64e51c38eb0ce859a;hb=bc0b9205e41c5db0552e4ccf060b945342e36ed0;hp=a350c705b2fb88c3c9aa337a8ff5c65373ab261e;hpb=303ad63c7d3ff6566fd0d4523e5970acfbfdd933;p=vchess.git
diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue
index a350c705..1107b58c 100644
--- a/client/src/components/ChallengeList.vue
+++ b/client/src/components/ChallengeList.vue
@@ -1,11 +1,12 @@
div
- table
+ table(v-if="challenges.length > 0")
thead
tr
th {{ st.tr["Variant"] }}
th {{ st.tr["With"] }}
th {{ st.tr["Cadence"] }}
+ th {{ st.tr["Random?"] }}
tbody
tr(
v-for="c in sortedChallenges"
@@ -15,6 +16,9 @@ div
td {{ c.vname }}
td {{ withWho(c) }}
td {{ c.cadence }}
+ td(:class="getRandomnessClass(c)")
+ p(v-else)
+ | {{ st.tr["No challenges found :( Click on 'New game'!"] }}