From 4dcbf1af07d52feb01551881346d72d59cb707b6 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 17 Oct 2024 00:51:46 -0700 Subject: [PATCH] enh: share rating to community --- .../chat/Messages/RateComment.svelte | 21 +++++++++++++++---- .../layout/Sidebar/RecursiveFolder.svelte | 6 ++++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/lib/components/chat/Messages/RateComment.svelte b/src/lib/components/chat/Messages/RateComment.svelte index 8ecbe09c7..68fdf737d 100644 --- a/src/lib/components/chat/Messages/RateComment.svelte +++ b/src/lib/components/chat/Messages/RateComment.svelte @@ -2,6 +2,7 @@ import { toast } from 'svelte-sonner'; import { createEventDispatcher, onMount, getContext } from 'svelte'; + import { config } from '$lib/stores'; const i18n = getContext('i18n'); @@ -69,7 +70,7 @@
@@ -97,7 +98,7 @@
{#each reasons as reason}
-
+
+ {#if $config?.features.enable_community_sharing} + + {/if} +