{{ curProb.instructions }}
X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fproblems.js;h=53077049d12dc61bd071fa2160e38c67c86cba08;hp=e3ab998d0fda67ee450e02a26eaaeea86bd44939;hb=fd08ab2c5b8931bb8c95cf7e9f2f95122647f991;hpb=8ef618ef05070642849f50861399116c2d69a816 diff --git a/public/javascripts/components/problems.js b/public/javascripts/components/problems.js index e3ab998d..53077049 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 }}