| {{ 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")
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"]);
},
this.gameInProgress = false;
},
gotoAnalyze: function() {
- this.$router.push("/analyze/" + this.gameInfo.vname
+ this.$router.push("/analyse/" + this.gameInfo.vname
+ "/?fen=" + V.GenRandInitFen());
},
},