X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=88f2b5e2fa73252d701b265e6b4f419143f65d59;hb=89021f181ac0689bbc785ce0ebd9a910e66352b0;hp=062990d2e8b492cda2c3d0753a06c5249bc0bbfa;hpb=83c6c2c96e7d34c79db20827f56b51040ef39392;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 062990d2..88f2b5e2 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -560,8 +560,13 @@ export default { GameStorage.get(this.gameRef.id, afterRetrieval); } }, - // Post-process a move (which was just played) + // Post-process a move (which was just played in BaseGame) processMove: function(move) { + if (this.game.type == "corr" && move.color == this.game.mycolor) + { + if (!confirm(this.st.tr["Are you sure?"])) + return this.$set(this.game, "moveToUndo", move); + } // Update storage (corr or live) if I play in the game const colorIdx = ["w","b"].indexOf(move.color); const nextIdx = ["w","b"].indexOf(this.vr.turn);