X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=c980400d166f2074445e52616d40603fcd36dfdd;hp=1e7a83bbde1cf9adca2644ad1ab4b62525b01f49;hb=3d52a549d2be1d9644ad7b43a4a2b4aa988b6bdb;hpb=13aa5a44fe3da4eac5ab04f0120ccbd5927f91c1 diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 1e7a83bb..c980400d 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -6,8 +6,9 @@ .card.smallpad.small-modal.text-center label.modal-close(for="modalEog") h3#eogMessage.section {{ endgameMessage }} - Board(:vr="vr" :last-move="lastMove" :analyze="analyze" :user-color="mycolor" - :orientation="orientation" :vname="vname" @play-move="play") + Board(:vr="vr" :last-move="lastMove" :analyze="analyze" + :user-color="gameInfo.mycolor" :orientation="orientation" + :vname="vname" @play-move="play") .button-group button(@click="() => play()") Play button(@click="() => undo()") Undo @@ -55,7 +56,7 @@ export default { }, watch: { // fenStart changes when a new game starts - fenStart: function() { + "gameInfo.fenStart": function() { // Reset all variables this.endgameMessage = ""; this.orientation = this.gameInfo.mycolor || "w";