Simplify navigation
[vchess.git] / public / javascripts / components / problems.js
index 9a14c70..cf2cd07 100644 (file)
@@ -38,7 +38,7 @@ Vue.component('my-problems', {
                                                {{ curProb.instructions }}
                                        </p>
                                </div>
-                               <my-board :fen="curProb.fen" :analyze:"true" .................> //TODO: use my-game in analyze mode ?
+                               <my-game :fen="curProb.fen" :mode="analyze" :allowMovelist="true">
                                </my-board>
                                <div id="solution-div" class="section-content">
                                        <h3 class="clickable" @click="showSolution = !showSolution">
@@ -129,6 +129,7 @@ Vue.component('my-problems', {
                </div>
        `,
        created: function() {
+               // TODO: adapt this, #problems:28 ? (for example)
                if (location.hash.length > 0)
                        this.showProblem(location.hash.slice(1));
                else