From 26f3a8879fb4b410ed8840c5a37397011c13bc1c Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Fri, 7 Feb 2020 11:24:29 +0100 Subject: [PATCH] Fix passing games --- client/src/components/ChallengeList.vue | 2 +- client/src/components/GameList.vue | 6 ++---- client/src/translations/en.js | 1 + client/src/views/Game.vue | 1 + client/src/views/Hall.vue | 3 +-- server/sockets.js | 6 +++++- 6 files changed, 11 insertions(+), 8 deletions(-) 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 }}