projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
'update'
[vchess.git]
/
client
/
src
/
components
/
BaseGame.vue
diff --git
a/client/src/components/BaseGame.vue
b/client/src/components/BaseGame.vue
index
07343c5
..
d035e00
100644
(file)
--- a/
client/src/components/BaseGame.vue
+++ b/
client/src/components/BaseGame.vue
@@
-20,7
+20,7
@@
div#baseGame(tabindex=-1 @click="() => focusBg()"
button(@click="() => play()") >
button(@click="gotoEnd") >>
#pgnDiv
button(@click="() => play()") >
button(@click="gotoEnd") >>
#pgnDiv
-
d
iv(v-if="game.vname!='Dark' || game.score!='*'")
+
#downloadD
iv(v-if="game.vname!='Dark' || game.score!='*'")
a#download(href="#")
button(@click="download") {{ st.tr["Download PGN"] }}
button(v-if="game.vname!='Dark' && game.mode!='analyze'"
a#download(href="#")
button(@click="download") {{ st.tr["Download PGN"] }}
button(v-if="game.vname!='Dark' && game.mode!='analyze'"
@@
-71,6
+71,9
@@
export default {
},
// Received a new move to play:
"game.moveToPlay": function(newMove) {
},
// Received a new move to play:
"game.moveToPlay": function(newMove) {
+
+console.log(newMove);
+
if (!!newMove) //if stop + launch new game, get undefined move
this.play(newMove, "receive");
},
if (!!newMove) //if stop + launch new game, get undefined move
this.play(newMove, "receive");
},
@@
-391,6
+394,9
@@
export default {
margin-left: auto
margin-right: auto
margin-left: auto
margin-right: auto
+#downloadDiv
+ display: inline-block
+
#modal-eog+div .card
overflow: hidden
#controls
#modal-eog+div .card
overflow: hidden
#controls