summaryrefslogtreecommitdiff
path: root/ui/lib/components/ChannelList.svelte
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-10-11 15:52:42 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-10-11 15:52:42 -0400
commitd33c8af14c4adc1c15ab048299e06f9f35ae4de6 (patch)
tree5dce8c28876353893dfd4725dcd093afff7e6dff /ui/lib/components/ChannelList.svelte
parent7bcfeb08946e64642b33f4b099ff235ba8527697 (diff)
parent72f3d8c5ab3e2a42cf1a76d0c08815dbe46e50a1 (diff)
Merge branch 'wip/login-route'
Diffstat (limited to 'ui/lib/components/ChannelList.svelte')
-rw-r--r--ui/lib/components/ChannelList.svelte8
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/lib/components/ChannelList.svelte b/ui/lib/components/ChannelList.svelte
index e0e5f06..316e404 100644
--- a/ui/lib/components/ChannelList.svelte
+++ b/ui/lib/components/ChannelList.svelte
@@ -2,17 +2,15 @@
import { channelsList } from '$lib/store';
import Channel from './Channel.svelte';
- let channels;
+ export let active = null;
- channelsList.subscribe((value) => {
- channels = value.channels;
- });
+ $: channels = $channelsList.channels;
</script>
<nav class="list-nav">
<ul>
{#each channels as channel}
- <Channel {...channel} />
+ <Channel {...channel} active={active === channel.id} />
{/each}
</ul>
</nav>