Update SelectAllButton.svelte

This commit is contained in:
freearhey 2023-12-07 01:10:20 +03:00
parent 6ecf2d7b72
commit a9f62f59de

View file

@ -1,9 +1,8 @@
<script>
import OutlineButton from '~/components/OutlineButton.svelte'
import { selected, filteredChannels } from '~/store'
$: hasStreams = $filteredChannels.filter(c => c.streams > 0)
import { selected, filteredChannels, channels } from '~/store'
$: hasStreams = $channels.filter(c => c.streams > 0)
$: isAllSelected = $selected.length === hasStreams.length
function selectAll() {