Disable checkbox for channels without streams

This commit is contained in:
freearhey 2023-12-06 22:09:05 +03:00
parent 1b54c7e9b4
commit 10c802f97f
4 changed files with 24 additions and 8 deletions

View file

@ -22,7 +22,9 @@
channels.forEach(channel => {
selected.update(arr => {
if (event.detail.state) {
arr.push(channel)
if (channel.streams > 0) {
arr.push(channel)
}
} else {
arr = arr.filter(c => c.id !== channel.id)
}