.col-sm-12
#fenDiv
input#fen(v-model="curFen" @input="adjustFenSize")
- button(@click="gotoFen") Go
- .row
- .col-sm-12.col-md-10.col-md-offset-1
- BaseGame(:game="game" :vr="vr" ref="basegame")
+ button(@click="gotoFen") {{ st.tr["Go"] }}
+ BaseGame(:game="game" :vr="vr" ref="basegame")
</template>
<script>
created: function() {
this.gameRef.fen = this.$route.query["fen"].replace(/_/g, " ");
this.gameRef.vname = this.$route.params["vname"];
- this.initialize(this.loadGame);
+ if (this.gameRef.vname != "Dark")
+ this.initialize(this.loadGame);
+ else
+ {
+ alert(this.st.tr["Analyze in Dark mode makes no sense!"]);
+ history.back(); //or this.$router.go(-1)
+ }
},
methods: {
initialize: async function(callback) {
callback();
},
loadGame: function() {
+ // NOTE: no need to set score (~unused)
this.game.vname = this.gameRef.vname;
this.game.fen = this.gameRef.fen;
this.curFen = this.game.fen;