X-Git-Url: https://git.auder.net/assets/icon_infos.svg?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FProblems.vue;h=152e455fa46ffdd005f1791d00346a2aee28f30c;hb=57b3f30ea30a2c6794da7995659985a186fcd4ea;hp=1c990649bf2256825930d7960e47661feaa27f88;hpb=0cd026057235122150be0f1eb4c72e5f5902a447;p=vchess.git diff --git a/client/src/views/Problems.vue b/client/src/views/Problems.vue index 1c990649..152e455f 100644 --- a/client/src/views/Problems.vue +++ b/client/src/views/Problems.vue @@ -313,10 +313,11 @@ export default { newProblem.id = ret.id; newProblem.uid = this.st.user.id; newProblem.uname = this.st.user.name; - this.problems = this.problems.concat(newProblem); + this.problems = [newProblem].concat(this.problems); this.resetCurProb(); } this.infoMsg = ""; + document.getElementById("modalNewprob").checked = false; } ); },