From 11967a780d3be1bb6778bad22824ccbcb4474423 Mon Sep 17 00:00:00 2001
From: Silentoplayz <50341825+Silentoplayz@users.noreply.github.com>
Date: Tue, 25 Feb 2025 17:05:05 -0500
Subject: [PATCH] Share fix
Fix
---
.../workspace/Prompts/PromptMenu.svelte | 21 +++++++++++--------
.../workspace/Tools/ToolMenu.svelte | 21 +++++++++++--------
2 files changed, 24 insertions(+), 18 deletions(-)
diff --git a/src/lib/components/workspace/Prompts/PromptMenu.svelte b/src/lib/components/workspace/Prompts/PromptMenu.svelte
index cb693f227..b41d8e195 100644
--- a/src/lib/components/workspace/Prompts/PromptMenu.svelte
+++ b/src/lib/components/workspace/Prompts/PromptMenu.svelte
@@ -2,6 +2,7 @@
import { DropdownMenu } from 'bits-ui';
import { flyAndScale } from '$lib/utils/transitions';
import { getContext } from 'svelte';
+ import { config } from '$lib/stores';
import Dropdown from '$lib/components/common/Dropdown.svelte';
import GarbageBin from '$lib/components/icons/GarbageBin.svelte';
@@ -44,15 +45,17 @@
align="start"
transition={flyAndScale}
>
- {
- shareHandler();
- }}
- >
-
- {$i18n.t('Share')}
-
+ {#if $config.features.enable_community_sharing}
+ {
+ shareHandler();
+ }}
+ >
+
+ {$i18n.t('Share')}
+
+ {/if}
{$i18n.t('Edit')}
- {
- shareHandler();
- }}
- >
-
- {$i18n.t('Share')}
-
+ {#if $config.features.enable_community_sharing}
+ {
+ shareHandler();
+ }}
+ >
+
+ {$i18n.t('Share')}
+
+ {/if}