diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-10-10 22:30:18 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-10-10 23:08:36 -0400 |
| commit | 2e2e3980ab78052be74f4007c343e69a583648fe (patch) | |
| tree | e791f18ee018a504db6da4939a8b82d1d84fe725 /ui/lib/components/Channel.svelte | |
| parent | 1798988c5bc6ad8c2286848df14c7fa478e135d1 (diff) | |
Compute the active channel from the current routing state, not from a store.
Diffstat (limited to 'ui/lib/components/Channel.svelte')
| -rw-r--r-- | ui/lib/components/Channel.svelte | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ui/lib/components/Channel.svelte b/ui/lib/components/Channel.svelte index 97fea1f..e62f0f3 100644 --- a/ui/lib/components/Channel.svelte +++ b/ui/lib/components/Channel.svelte @@ -1,13 +1,7 @@ <script> - import { activeChannel } from '$lib/store'; - export let id; export let name; - let active = false; - - activeChannel.subscribe((value) => { - active = value.is(id); - }); + export let active = false; </script> <li |
