Add enable/disable all button for layers, fix #1407

This commit is contained in:
Pieter Vander Vennet 2024-02-22 01:12:24 +01:00
parent 894c48520a
commit 5c11149085
3 changed files with 59 additions and 11 deletions

View file

@ -8,6 +8,9 @@
let _c: boolean = selected.data ?? true
let id = `checkbox-input-${Math.round(Math.random()*100000000)}`
$: selected.set(_c)
selected.addCallbackD(s => {
_c = s
})
</script>
<label class="no-image-background flex items-center gap-1">