X-Git-Url: https://git.auder.net/pieces/cr.svg?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FProblems.vue;h=1884852a6c92b7aa696860337b958f29585c6b56;hb=1a0215292a1eda58217f90d59fd7cdce1dd4c07c;hp=2d5526d01775c0edb4d401adcfe2735ac1daa9e2;hpb=7617c334b43d2f5fff40cbec72127ed30e5867c0;p=vchess.git diff --git a/client/src/views/Problems.vue b/client/src/views/Problems.vue index 2d5526d0..1884852a 100644 --- a/client/src/views/Problems.vue +++ b/client/src/views/Problems.vue @@ -54,7 +54,7 @@ main span.uname ({{ curproblem.uname }}) button.marginleft(@click="backToList()") {{ st.tr["Back to list"] }} button.nomargin(@click="gotoPrevNext($event,curproblem,1)") - | {{ st.tr["Previous"] }} + | {{ st.tr["Previous_p"] }} button.nomargin(@click="gotoPrevNext($event,curproblem,-1)") | {{ st.tr["Next_p"] }} p.oneInstructions.clickable( @@ -273,6 +273,7 @@ export default { this.loadVariant(prob.vid, () => { // Set FEN if possible (might not be correct yet) if (V.IsGoodFen(prob.fen)) this.setDiagram(prob); + else prob.diag = ""; }); }, loadVariant: async function(vid, cb) { @@ -291,6 +292,7 @@ export default { // variant could not be ready, or not defined if (prob.vid > 0 && this.loadedVar == prob.vid && V.IsGoodFen(prob.fen)) this.setDiagram(prob); + else prob.diag = ""; }, setDiagram: function(prob) { // Condition: prob.fen is correct and global V is ready @@ -371,7 +373,7 @@ export default { data: { prob: this.curproblem }, success: (ret) => { if (edit) { - let editedP = this.problems.find(p => p.id == this.curproblem.id); + let editedP = this.problems["mine"].find(p => p.id == this.curproblem.id); this.copyProblem(this.curproblem, editedP); this.showProblem(editedP); }