mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-01-06 02:35:25 +01:00
Merge branch 'main' of git://github.com/blai30/paimon-moe into blai30-main
This commit is contained in:
commit
80970dc8b3
2 changed files with 9 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
</script>
|
||||
|
||||
<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-background'} {className}"
|
||||
style="--bg: {inverted ? '#202442' : '#2D325A'};"
|
||||
|
|
|
@ -147,6 +147,13 @@
|
|||
val = !list[index][subindex].checked;
|
||||
list[index][subindex].checked = 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 {
|
||||
val = !list[index].checked;
|
||||
list[index].checked = val;
|
||||
|
@ -284,6 +291,7 @@
|
|||
checked={list[index][i].checked}
|
||||
on:change={() => toggle({ index, subindex: i, primogem: it.reward })}
|
||||
inverted
|
||||
disabled={i > 0 && !el[i - 1].checked}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue