From: Benjamin Auder Date: Fri, 7 Feb 2020 10:24:29 +0000 (+0100) Subject: Fix passing games X-Git-Url: https://git.auder.net/variants/Chakart/img/doc/%24%7BgetWhatsApp%28link%29%7D?a=commitdiff_plain;h=26f3a8879fb4b410ed8840c5a37397011c13bc1c;p=vchess.git Fix passing games --- diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue index 095c0966..fd2a9015 100644 --- a/client/src/components/ChallengeList.vue +++ b/client/src/components/ChallengeList.vue @@ -10,7 +10,7 @@ div tbody tr(v-for="c in sortedChallenges" @click="$emit('click-challenge',c)") td(data-label="Variant") {{ c.vname }} - td(data-label="From") {{ c.from.name }} + td(data-label="From") {{ c.from.name || "@nonymous" }} td(data-label="To") {{ c.to }} td(data-label="Cadence") {{ c.timeControl }} diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue index d0ea2f01..62c916fa 100644 --- a/client/src/components/GameList.vue +++ b/client/src/components/GameList.vue @@ -7,7 +7,7 @@ div th {{ st.tr["White"] }} th {{ st.tr["Black"] }} th {{ st.tr["Time control"] }} - th(v-if="showResult") Result + th {{ st.tr["Result"] }} tbody tr(v-for="g in sortedGames" @click="$emit('show-game',g)" :class="{'my-turn': g.myTurn}") @@ -15,7 +15,7 @@ div td(data-label="White") {{ g.players[0].name || "@nonymous" }} td(data-label="Black") {{ g.players[1].name || "@nonymous" }} td(data-label="Time control") {{ g.timeControl }} - td(v-if="showResult" data-label="Result") {{ g.score }} + td(data-label="Result") {{ g.score }}