mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-01-07 11:04:50 +01:00
Merge branch 'blai30-main' into main
This commit is contained in:
commit
0f0268e09e
2 changed files with 9 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<label
|
<label
|
||||||
class="checkbox-wrapper flex flex-1 pl-4 items-center rounded-2xl h-14 cursor-pointer {inverted
|
class="checkbox-wrapper flex flex-1 pl-4 items-center rounded-2xl h-14 {disabled ? 'cursor-not-allowed' : 'cursor-pointer'} {inverted
|
||||||
? 'bg-item'
|
? 'bg-item'
|
||||||
: 'bg-background'} {className}"
|
: 'bg-background'} {className}"
|
||||||
style="--bg: {inverted ? '#202442' : '#2D325A'};"
|
style="--bg: {inverted ? '#202442' : '#2D325A'};"
|
||||||
|
|
|
@ -147,6 +147,13 @@
|
||||||
val = !list[index][subindex].checked;
|
val = !list[index][subindex].checked;
|
||||||
list[index][subindex].checked = val;
|
list[index][subindex].checked = val;
|
||||||
checkList[active][list[index][subindex].id] = val;
|
checkList[active][list[index][subindex].id] = val;
|
||||||
|
|
||||||
|
// If unchecked, recursively uncheck subsequent achievements
|
||||||
|
if (subindex < list[index].length - 1 &&
|
||||||
|
!list[index][subindex].checked &&
|
||||||
|
list[index][subindex + 1].checked) {
|
||||||
|
toggle({ index, subindex: subindex + 1, primogem: list[index][subindex + 1].reward});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
val = !list[index].checked;
|
val = !list[index].checked;
|
||||||
list[index].checked = val;
|
list[index].checked = val;
|
||||||
|
@ -284,6 +291,7 @@
|
||||||
checked={list[index][i].checked}
|
checked={list[index][i].checked}
|
||||||
on:change={() => toggle({ index, subindex: i, primogem: it.reward })}
|
on:change={() => toggle({ index, subindex: i, primogem: it.reward })}
|
||||||
inverted
|
inverted
|
||||||
|
disabled={i > 0 && !el[i - 1].checked}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue