projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify navigation
[vchess.git]
/
public
/
javascripts
/
components
/
problems.js
diff --git
a/public/javascripts/components/problems.js
b/public/javascripts/components/problems.js
index
9a14c70
..
cf2cd07
100644
(file)
--- a/
public/javascripts/components/problems.js
+++ b/
public/javascripts/components/problems.js
@@
-38,7
+38,7
@@
Vue.component('my-problems', {
{{ curProb.instructions }}
</p>
</div>
{{ 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">
</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() {
</div>
`,
created: function() {
+ // TODO: adapt this, #problems:28 ? (for example)
if (location.hash.length > 0)
this.showProblem(location.hash.slice(1));
else
if (location.hash.length > 0)
this.showProblem(location.hash.slice(1));
else