diff options
Diffstat (limited to 'ui/routes/(app)/ch')
| -rw-r--r-- | ui/routes/(app)/ch/[channel]/+page.svelte | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/routes/(app)/ch/[channel]/+page.svelte b/ui/routes/(app)/ch/[channel]/+page.svelte new file mode 100644 index 0000000..ef439d0 --- /dev/null +++ b/ui/routes/(app)/ch/[channel]/+page.svelte @@ -0,0 +1,17 @@ +<script> + import { afterNavigate } from '$app/navigation'; + import { page } from '$app/stores'; + + import { activeChannel } from '$lib/store'; + import ActiveChannel from '$lib/components/ActiveChannel.svelte'; + + afterNavigate(async () => { + let { channel } = $page.params; + activeChannel.update((value) => { + value.set(channel) + return value; + }); + }); +</script> + +<ActiveChannel /> |
