{{ curProb.instructions }}
X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fproblems.js;h=cf2cd074cf7446220618576d69e4727440ef6f12;hb=4608eed94432356bd2df8c144d7d233913c6483c;hp=e3ab998d0fda67ee450e02a26eaaeea86bd44939;hpb=8ef618ef05070642849f50861399116c2d69a816;p=vchess.git diff --git a/public/javascripts/components/problems.js b/public/javascripts/components/problems.js index e3ab998d..cf2cd074 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,13 +32,14 @@ Vue.component('my-problems', { skip_next -
{{ curProb.instructions }}