From 977edb70a2b35618bf15ecff1a27044161718fc6 Mon Sep 17 00:00:00 2001 From: Jake Fulmine Date: Sun, 18 Feb 2024 14:18:20 +0100 Subject: [PATCH] fix(dashboard): don't show old description after clearing --- dashboard/src/components/group/Body.svelte | 4 ++++ dashboard/src/components/member/Body.svelte | 4 ++++ dashboard/src/components/system/Body.svelte | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/dashboard/src/components/group/Body.svelte b/dashboard/src/components/group/Body.svelte index b7404f33..17be205c 100644 --- a/dashboard/src/components/group/Body.svelte +++ b/dashboard/src/components/group/Body.svelte @@ -121,7 +121,11 @@
Description:
+ {#if group.description} + {:else} + (no description) + {/if}
{#if (group.banner && ((settings && settings.appearance.banner_bottom) || !settings))} group banner diff --git a/dashboard/src/components/member/Body.svelte b/dashboard/src/components/member/Body.svelte index 1115c226..fada861a 100644 --- a/dashboard/src/components/member/Body.svelte +++ b/dashboard/src/components/member/Body.svelte @@ -196,7 +196,11 @@
Description:
+ {#if member.description} + {:else} + (no description) + {/if}
{#if (member.banner && ((settings && settings.appearance.banner_bottom) || !settings))} member banner diff --git a/dashboard/src/components/system/Body.svelte b/dashboard/src/components/system/Body.svelte index 2c8721cc..e44bd1ce 100644 --- a/dashboard/src/components/system/Body.svelte +++ b/dashboard/src/components/system/Body.svelte @@ -99,7 +99,11 @@
Description:
+ {#if user.description} + {:else} + (no description) + {/if}
{#if (user.banner && ((settings && settings.appearance.banner_bottom) || !settings))} system banner