X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FProblems.vue;h=b62bce95d56affe934c2860ed0eb24d7756a95fc;hb=b406466b0f0ce67451f1718053e5f5691d6507fb;hp=3c9327dbc2f79cf7ba1c8c599113ade0d1fd21c9;hpb=01fba77cc0aa257de0a0c47ba1b44c20d86921e3;p=vchess.git
diff --git a/client/src/views/Problems.vue b/client/src/views/Problems.vue
index 3c9327db..b62bce95 100644
--- a/client/src/views/Problems.vue
+++ b/client/src/views/Problems.vue
@@ -115,6 +115,7 @@ main
import { store } from "@/store";
import { ajax } from "@/utils/ajax";
import { checkProblem } from "@/data/problemCheck";
+import params from "@/parameters";
import { getDiagram } from "@/utils/printDiagram";
import { processModalClick } from "@/utils/modalClick";
import { ArrayFun } from "@/utils/array";
@@ -154,7 +155,6 @@ export default {
onlyMine: false,
showOne: false,
infoMsg: "",
- admins: [1], //hard-coded for now. TODO
game: {
players: [{ name: "Problem" }, { name: "Problem" }],
mode: "analyze"
@@ -319,6 +319,7 @@ export default {
// $nextTick to be sure $refs["basegame"] exists
this.$nextTick(() => {
this.$refs["basegame"].re_setVariables(this.game); });
+ this.curproblem.showSolution = false; //in case of
this.copyProblem(p, this.curproblem);
});
};
@@ -408,7 +409,7 @@ export default {
);
},
canIedit: function(puid) {
- return this.admins.concat([puid]).includes(this.st.user.id);
+ return params.devs.concat([puid]).includes(this.st.user.id);
},
editProblem: function(prob) {
// prob.diag might correspond to some other problem or be empty:
@@ -468,6 +469,10 @@ export default {
};
+
+