ui: Prepare ui for public interface
This commit is contained in:
parent
d010b86fa0
commit
56d8d49304
7 changed files with 118 additions and 27 deletions
|
|
@ -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)));
|
||||
|
|
|
|||
Reference in a new issue