X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=8a053765c56a680aac22cb4eb42a220f41e3e549;hp=e99c194e81d38d2a44a44c3c77e07e04d69a63dc;hb=cd49e617866590dbc68530ad961b109cdbe1ce55;hpb=665eed903c4f294de82e7cb0ce4026b64fe64765 diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index e99c194e..8a053765 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -212,6 +212,10 @@ export default { this.moves = JSON.parse(JSON.stringify(game.moves || [])); // Post-processing: decorate each move with notation and FEN this.vr = new V(game.fenStart); + this.inMultimove = false; //in case of + this.$refs["board"].resetCurrentAttempt(); //also in case of + let analyseBtn = document.getElementById("analyzeBtn"); + if (!!analyseBtn) analyseBtn.classList.remove("active"); const parsedFen = V.ParseFen(game.fenStart); const firstMoveColor = parsedFen.turn; this.firstMoveNumber = Math.floor(parsedFen.movesCount / 2) + 1;