mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-14 19:10:06 -04:00
Disable checkbox for channels without streams
This commit is contained in:
parent
1b54c7e9b4
commit
10c802f97f
4 changed files with 24 additions and 8 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue