From 2e2e3980ab78052be74f4007c343e69a583648fe Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Thu, 10 Oct 2024 22:30:18 -0400 Subject: Compute the active channel from the current routing state, not from a store. --- ui/lib/components/ActiveChannel.svelte | 7 ++++--- ui/lib/components/Channel.svelte | 8 +------- ui/lib/components/ChannelList.svelte | 8 +++----- ui/lib/components/MessageInput.svelte | 30 ++++++++++++++---------------- 4 files changed, 22 insertions(+), 31 deletions(-) (limited to 'ui/lib/components') diff --git a/ui/lib/components/ActiveChannel.svelte b/ui/lib/components/ActiveChannel.svelte index 978e952..ece9f55 100644 --- a/ui/lib/components/ActiveChannel.svelte +++ b/ui/lib/components/ActiveChannel.svelte @@ -1,10 +1,11 @@
  • { - channels = value.channels; - }); + $: channels = $channelsList.channels; diff --git a/ui/lib/components/MessageInput.svelte b/ui/lib/components/MessageInput.svelte index b33574b..0da78d4 100644 --- a/ui/lib/components/MessageInput.svelte +++ b/ui/lib/components/MessageInput.svelte @@ -1,30 +1,28 @@
    - +
    -- cgit v1.2.3