projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix indentation
[vchess.git]
/
client
/
src
/
components
/
BaseGame.vue
diff --git
a/client/src/components/BaseGame.vue
b/client/src/components/BaseGame.vue
index
433a8ac
..
2f49169
100644
(file)
--- a/
client/src/components/BaseGame.vue
+++ b/
client/src/components/BaseGame.vue
@@
-40,8
+40,7
@@
div#baseGame(
:incheck="incheck"
@play-move="play"
)
: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()") <
#controls
button(@click="gotoBegin()") <<
button(@click="undo()") <
@@
-125,6
+124,9
@@
export default {
showMoves: function() {
return this.game.vname != "Dark" || this.game.score != "*";
},
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" ||
analyze: function() {
return (
this.game.mode == "analyze" ||