From: Benjamin Auder Date: Thu, 4 Jul 2019 16:20:50 +0000 (+0200) Subject: Modifs to send current live game X-Git-Url: https://git.auder.net/js/css/%7B%7B%20path%28%27fos_user_security_login%27%29%20%7D%7D?a=commitdiff_plain;h=42c15a75118bfeb3251cea1f65acb01fcd023f01;p=vchess.git Modifs to send current live game --- diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue index bb97a742..8481048d 100644 --- a/client/src/components/GameList.vue +++ b/client/src/components/GameList.vue @@ -2,17 +2,16 @@ table tr th Variant - th Players names - th Cadence + th White + th Black + th Time control th(v-if="showResult") Result - th(v-else) Moves count tr(v-for="g in games" @click="$emit('show-game',g)") td {{ g.vname }} - td - span(v-for="p in g.players") {{ p.name }} - td {{ g.mainTime }} + {{ g.increment }} + td {{ g.players[0] }} + td {{ g.players[1] }} + td {{ g.timeControl }} td(v-if="showResult") {{ g.score }} - td(v-else) {{ g.movesCount }}