X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FRules.vue;h=3339111a1d5dd9ffd3f53fe4d0ded6a6fc2d413a;hb=677fe285f1137d1d3e672dcf2dae3ac6e943be37;hp=1f9a0a44bd3dc3ceb8face11c7664383208f6e41;hpb=fcbc92c26e382e425d3d4cc4910eaf1a1d61c989;p=vchess.git diff --git a/client/src/views/Rules.vue b/client/src/views/Rules.vue index 1f9a0a44..3339111a 100644 --- a/client/src/views/Rules.vue +++ b/client/src/views/Rules.vue @@ -12,7 +12,7 @@ main | {{ st.tr["Stop game"] }} button(v-if="display=='rules' && gameInfo.vname!='Dark'" @click="gotoAnalyze") - | {{ st.tr["Analyze"] }} + | {{ st.tr["Analyse"] }} .section-content(v-show="display=='rules'" v-html="content") ComputerGame(v-show="display=='computer'" :game-info="gameInfo" @game-over="stopGame" @game-stopped="gameStopped") @@ -47,7 +47,7 @@ export default { this.re_setVariant(newRoute.params["vname"]); }, }, - created: async function() { + created: function() { // NOTE: variant cannot be set before store is initialized this.re_setVariant(this.$route.params["vname"]); }, @@ -108,7 +108,7 @@ export default { this.gameInProgress = false; }, gotoAnalyze: function() { - this.$router.push("/analyze/" + this.gameInfo.vname + this.$router.push("/analyse/" + this.gameInfo.vname + "/?fen=" + V.GenRandInitFen()); }, },