Merge branch 'main' of git://github.com/blai30/paimon-moe into blai30-main

pull/1/head
Made Baruna 2021-08-03 04:48:22 +07:00
commit 80970dc8b3
No known key found for this signature in database
GPG Key ID: 5AA5DA16AA5DCEAD
2 changed files with 9 additions and 1 deletions

View File

@ -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'};"

View File

@ -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>