ui: Move behind in the menu disabled themes
This commit is contained in:
parent
0d5b87b3f7
commit
089e604679
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ export const themes = derived(
|
||||||
const r = Math.floor(rng() * keys.length);
|
const r = Math.floor(rng() * keys.length);
|
||||||
const g = keys[r];
|
const g = keys[r];
|
||||||
keys.splice(r,1);
|
keys.splice(r,1);
|
||||||
if (arr[g].locked) {
|
if (arr[g].locked || arr[g].exercices.length == 0 || ($my && (!$my.exercices[arr[g].exercices[0].id] || $my.exercices[arr[g].exercices[0].id].disabled))) {
|
||||||
respD.push(arr[g]);
|
respD.push(arr[g]);
|
||||||
} else {
|
} else {
|
||||||
respE.push(arr[g]);
|
respE.push(arr[g]);
|
||||||
|
|
|
||||||
Reference in a new issue