{{ curProb.instructions }} @@ -45,12 +47,22 @@ Vue.component('my-problems', { {{ curProb.solution }}
X-Git-Url: https://git.auder.net/pieces/Cwda/n_white_knight.svg?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fproblems.js;h=897babbe7035886ff889e384ff86fa1100e48868;hb=936dc463c969f648ae0bc81074ff3272c7c99697;hp=e3ab998d0fda67ee450e02a26eaaeea86bd44939;hpb=8ef618ef05070642849f50861399116c2d69a816;p=vchess.git diff --git a/public/javascripts/components/problems.js b/public/javascripts/components/problems.js index e3ab998d..897babbe 100644 --- a/public/javascripts/components/problems.js +++ b/public/javascripts/components/problems.js @@ -4,9 +4,11 @@ Vue.component('my-problems', { userId: user.id, problems: [], //oldest first myProblems: [], //same, but only mine - display: "list", //or "myList" - curIdx: -1, //index in (current) problems array + singletons: [], //requested problems (using #num) + display: "others", //or "mine" + curProb: null, //(reference to) current displayed problem (if any) showSolution: false, + pbNum: 0, //to navigate directly to some problem // New problem (to upload), or existing problem to edit: modalProb: { id: 0, //defined if it's an edit @@ -30,7 +32,7 @@ Vue.component('my-problems', { skip_next -
{{ curProb.instructions }} @@ -45,12 +47,22 @@ Vue.component('my-problems', { {{ curProb.solution }}