ui: Prepare ui for public interface

This commit is contained in:
nemunaire 2021-09-09 18:20:03 +02:00
commit 56d8d49304
7 changed files with 118 additions and 27 deletions

View file

@ -10,6 +10,12 @@ function createMyStore() {
res_my.json().then((my) => {
for (let k in my.exercices) {
my.exercices[k].id = k;
if (my.team_id === 0 && my.exercices[k].hints) {
for (let j in my.exercices[k].hints) {
my.exercices[k].hints[j].hidden = true;
}
}
}
update((m) => (Object.assign(m?m:{}, my)));