From ad86707605ce18db5cf18a1d1dcd0ce8103ff61a Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 27 Nov 2025 08:20:14 -0500 Subject: [PATCH] refac --- .../layout/Sidebar/ChannelModal.svelte | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/lib/components/layout/Sidebar/ChannelModal.svelte b/src/lib/components/layout/Sidebar/ChannelModal.svelte index e0d639624..1000caf0a 100644 --- a/src/lib/components/layout/Sidebar/ChannelModal.svelte +++ b/src/lib/components/layout/Sidebar/ChannelModal.svelte @@ -118,19 +118,21 @@ submitHandler(); }} > -
-
{$i18n.t('Channel Type')}
+ {#if !edit} +
+
{$i18n.t('Channel Type')}
-
- +
+ +
-
+ {/if}
@@ -152,7 +154,7 @@
-
+
{#if type === 'dm'}