X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FGameList.vue;h=1e31e737af36655556ca52baf54490f3acffc8b8;hb=d8b1800bcec983faabc34bdb1057ef880488a160;hp=0d2fbf468a98de06d4f0f2e5743263876c4506d2;hpb=dac395887d96e2d642b209c6db6aaacc3ffacb34;p=vchess.git diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue index 0d2fbf46..1e31e737 100644 --- a/client/src/components/GameList.vue +++ b/client/src/components/GameList.vue @@ -3,37 +3,37 @@ div table thead tr - th Variant - th White - th Black - th Time control - th(v-if="showResult") Result + th {{ st.tr["Variant"] }} + th {{ st.tr["White"] }} + th {{ st.tr["Black"] }} + th {{ st.tr["Cadence"] }} + th {{ st.tr["Result"] }} tbody tr(v-for="g in sortedGames" @click="$emit('show-game',g)" :class="{'my-turn': g.myTurn}") td(data-label="Variant") {{ g.vname }} 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="Time control") {{ g.cadence }} + td(data-label="Result" :class="{finished: g.score!='*'}" @click="deleteGame(g,$event)") + | {{ g.score }} @@ -62,4 +73,6 @@ export default { // TODO: understand why the style applied to element doesn't work tr.my-turn > td background-color: #fcd785 +tr td.finished + background-color: #f5b7b1