X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=b34eae9f2482c2204ae8af649842affb4ca6c337;hb=89021f181ac0689bbc785ce0ebd9a910e66352b0;hp=a1539bab773d170218ee29a1f3e34af663cd1a6b;hpb=83c6c2c96e7d34c79db20827f56b51040ef39392;p=vchess.git diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index a1539bab..b34eae9f 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -84,6 +84,11 @@ export default { if (!!newMove) //if stop + launch new game, get undefined move this.play(newMove, "receive"); }, + // ...Or to undo (corr game, move not validated) + "game.moveToUndo": function(move) { + if (!!move) + this.undo(move); + }, }, computed: { showMoves: function() {