From: Benjamin Auder Date: Sat, 7 Mar 2020 12:31:42 +0000 (+0100) Subject: Experimental update: preview corr move + allow deletion of any game X-Git-Url: https://git.auder.net/variants/Chakart/css/assets/doc/current/gitweb.css?a=commitdiff_plain;h=aae89b49a846b2c101d74db7dff9151392d6db34;p=vchess.git Experimental update: preview corr move + allow deletion of any game --- diff --git a/TODO b/TODO index 65bcbd11..2f909766 100644 --- a/TODO +++ b/TODO @@ -41,6 +41,7 @@ Take(a)n(d)make : if capture a piece, take its power for the last of the turn an If a pawn taken: direction of the capturer. + Maxima, Interweave, Roccoco, Dynamo, Synchrone +Synchrone Chess: allow to anticipate en-passant capture as well :) S-chess https://en.wikipedia.org/wiki/Seirawan_chess diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index ac8b3236..e7977eb2 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -87,9 +87,10 @@ export default { }; }, watch: { - // game initial FEN changes when a new game starts - "game.fenStart": function() { - this.re_setVariables(); + // game initial FEN changes when a new game starts. + // NOTE: when game ID change on Game page, fenStart may be temporarily undefined + "game.fenStart": function(fenStart) { + if (!!fenStart) this.re_setVariables(); }, }, computed: { @@ -256,11 +257,7 @@ export default { }, showEndgameMsg: function(message) { this.endgameMessage = message; - let modalBox = document.getElementById("modalEog"); - modalBox.checked = true; - setTimeout(() => { - modalBox.checked = false; - }, 2000); + document.getElementById("modalEog").checked = true; }, // Animate an elementary move animateMove: function(move, callback) { diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue index aa361fb3..0a8bd8ce 100644 --- a/client/src/components/GameList.vue +++ b/client/src/components/GameList.vue @@ -28,6 +28,7 @@ div