From dc73bdfa2e57269f0f38ee529ce109c068101831 Mon Sep 17 00:00:00 2001 From: vvandenb Date: Sun, 19 Mar 2023 14:49:23 +0100 Subject: [PATCH] * Hide useless buttons on DM channels --- front/volume/src/components/Channels.svelte | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/front/volume/src/components/Channels.svelte b/front/volume/src/components/Channels.svelte index 9a3552b..7888095 100644 --- a/front/volume/src/components/Channels.svelte +++ b/front/volume/src/components/Channels.svelte @@ -229,10 +229,14 @@ on:click={() => removeChannel(channel.id)} on:keydown={() => removeChannel(channel.id)}>🗑️ - {#if channel.isPrivate == true} - + + {#if channel.isPrivate == true && channel.password} + + {/if} + + {#if !(channel.isPrivate == true && !channel.password)} + {/if} -