diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-11-03 09:43:38 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-11-03 09:43:38 -0500 |
| commit | bccb69f370a63d95099dcc5054ac10ca09ac8c84 (patch) | |
| tree | 527c2f4f51d97609acabe01f0cd75335c1ceb316 /ui/lib | |
| parent | 37a319642f52a8458a048262794eca041889396d (diff) | |
Generalize menu-closing
Diffstat (limited to 'ui/lib')
| -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 60c9092..3dc5c87 100644 --- a/ui/lib/components/Channel.svelte +++ b/ui/lib/components/Channel.svelte @@ -1,17 +1,11 @@ <script> - import { showMenu } from '$lib/store'; - export let id; export let name; export let active = false; - - function hideMenu() { - showMenu.update(() => false); - } </script> <li class="rounded-full" class:bg-slate-400={active}> - <a href="/ch/{id}" on:click={hideMenu}> + <a href="/ch/{id}"> <span class="badge bg-primary-500">#</span> <span class="flex-auto">{name}</span> </a> |
