X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=2f49169a58b83d42e2092722ca4ad330a73527a8;hb=3b8b49ceeaec4a4d29e8635ed14bea51f92db755;hp=433a8ac63da158a1b3947a813f56ae4cbab780b4;hpb=29bc61bed4a31df9353640a60a386f7f1ae0643b;p=vchess.git diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 433a8ac6..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" ||