From d4a2d11ecf22c24866df51bc217300a4f0b9c8a8 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Mon, 5 Oct 2026 02:36:51 -0400 Subject: [PATCH] fix: hide Share in the function menu when Community Sharing is off (#31820) --- .../admin/Functions/FunctionMenu.svelte | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/lib/components/admin/Functions/FunctionMenu.svelte b/src/lib/components/admin/Functions/FunctionMenu.svelte index 1cbe617e14..3f081e3f13 100644 --- a/src/lib/components/admin/Functions/FunctionMenu.svelte +++ b/src/lib/components/admin/Functions/FunctionMenu.svelte @@ -10,6 +10,7 @@ import Download from '$lib/components/icons/Download.svelte'; import Switch from '$lib/components/common/Switch.svelte'; import GlobeAlt from '$lib/components/icons/GlobeAlt.svelte'; + import { config } from '$lib/stores'; const i18n = getContext('i18n'); @@ -88,16 +89,18 @@
{$i18n.t('Edit')}
- + {#if $config?.features.enable_community_sharing} + + {/if}