From: Benjamin Auder Date: Mon, 17 Feb 2020 07:17:52 +0000 (+0100) Subject: Add TODO: timeover bug in corr games when taking back X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/css/img/DESCRIPTION?a=commitdiff_plain;h=2d4ec1779f50f6a479276edc9297b4323e0d42bb;p=vchess.git Add TODO: timeover bug in corr games when taking back --- diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index e2215619..51fde64d 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -561,6 +561,9 @@ export default { processMove: function(move) { if (this.game.type == "corr" && move.color == this.game.mycolor) { + +//TODO: if takeback, then time over occurs. + if (!confirm(this.st.tr["Move played:"] + " " + move.notation + "\n" + this.st.tr["Are you sure?"])) return this.$set(this.game, "moveToUndo", move); }