.button-group(v-if="canIedit(curproblem.uid)")
button(@click="editProblem(curproblem)") {{ st.tr["Edit"] }}
button(@click="deleteProblem(curproblem)") {{ st.tr["Delete"] }}
.button-group(v-if="canIedit(curproblem.uid)")
button(@click="editProblem(curproblem)") {{ st.tr["Edit"] }}
button(@click="deleteProblem(curproblem)") {{ st.tr["Delete"] }}
span.uname ({{ curproblem.uname }})
button.marginleft(@click="backToList()") {{ st.tr["Back to list"] }}
button.nomargin(@click="gotoPrevNext(curproblem,1)")
span.uname ({{ curproblem.uname }})
button.marginleft(@click="backToList()") {{ st.tr["Back to list"] }}
button.nomargin(@click="gotoPrevNext(curproblem,1)")
// Problem currently showed, or edited:
curproblem: {
id: 0, //used in case of edit
// Problem currently showed, or edited:
curproblem: {
id: 0, //used in case of edit
},
// Add vname and user names:
decorate: function(problems, callback) {
},
// Add vname and user names:
decorate: function(problems, callback) {
this.curproblem.fen = "";
this.curproblem.diag = "";
this.curproblem.instruction = "";
this.curproblem.fen = "";
this.curproblem.diag = "";
this.curproblem.instruction = "";
},
gotoPrevNext: function(prob, dir) {
const mode = (this.onlyMine ? "mine" : "others");
},
gotoPrevNext: function(prob, dir) {
const mode = (this.onlyMine ? "mine" : "others");
// (Unless the user navigated several times by URL to show a
// single problem...)
.sort((p1, p2) => p2.added - p1.added);
// (Unless the user navigated several times by URL to show a
// single problem...)
.sort((p1, p2) => p2.added - p1.added);