From f2da65b778e21392a9fe35c3de867c3b30e48edf Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 28 Jul 2025 17:42:45 +0400 Subject: [PATCH] fix: hide community sharing button when disabled Co-Authored-By: G30 <50341825+silentoplayz@users.noreply.github.com> --- src/lib/components/admin/Evaluations/Feedbacks.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/admin/Evaluations/Feedbacks.svelte b/src/lib/components/admin/Evaluations/Feedbacks.svelte index 61e937ee9c..fc6625f32e 100644 --- a/src/lib/components/admin/Evaluations/Feedbacks.svelte +++ b/src/lib/components/admin/Evaluations/Feedbacks.svelte @@ -24,6 +24,7 @@ import ChevronUp from '$lib/components/icons/ChevronUp.svelte'; import ChevronDown from '$lib/components/icons/ChevronDown.svelte'; import { WEBUI_BASE_URL } from '$lib/constants'; + import { config } from '$lib/stores'; export let feedbacks = []; @@ -390,7 +391,7 @@ {/if} -{#if feedbacks.length > 0} +{#if feedbacks.length > 0 && $config?.features?.enable_community_sharing}
{$i18n.t('Help us create the best community leaderboard by sharing your feedback history!')}