X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=2f49169a58b83d42e2092722ca4ad330a73527a8;hb=8a0f881d7d2729cb421c6c1efcf51e6820ef005d;hp=f4603d6bdec95ad389ad800b8915ccfb9a26b29b;hpb=910d631b73cad5ffef1b4461157b704e7e7057d8;p=vchess.git diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index f4603d6b..2f49169a 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -40,8 +40,7 @@ div#baseGame( :incheck="incheck" @play-move="play" ) - #turnIndicator(v-if="game.vname=='Dark' && game.score=='*'") - | {{ st.tr[vr.turn + " to move"] }} + #turnIndicator(v-if="game.vname=='Dark' && game.score=='*'") {{ turn }} #controls button(@click="gotoBegin()") << button(@click="undo()") < @@ -125,6 +124,9 @@ export default { showMoves: function() { return this.game.vname != "Dark" || this.game.score != "*"; }, + turn: function() { + return this.st.tr[(this.vr.turn == 'w' ? "White" : "Black") + " to move"]; + }, analyze: function() { return ( this.game.mode == "analyze" || @@ -452,6 +454,7 @@ export default { #turnIndicator text-align: center + font-weight: bold #belowControls border-top: 1px solid #2f4f4f