From e86c82406da3438e269955221f78757132e30727 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 10 Oct 2026 18:55:05 +0400 Subject: [PATCH] refac --- .../workspace/Skills/SkillMenu.svelte | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/lib/components/workspace/Skills/SkillMenu.svelte b/src/lib/components/workspace/Skills/SkillMenu.svelte index 5c1e62e134..83d507650f 100644 --- a/src/lib/components/workspace/Skills/SkillMenu.svelte +++ b/src/lib/components/workspace/Skills/SkillMenu.svelte @@ -8,6 +8,7 @@ import Tooltip from '$lib/components/common/Tooltip.svelte'; import DocumentDuplicate from '$lib/components/icons/DocumentDuplicate.svelte'; import Download from '$lib/components/icons/Download.svelte'; + import Share from '$lib/components/icons/Share.svelte'; import { user, config } from '$lib/stores'; const i18n = getContext('i18n'); @@ -80,6 +81,21 @@ {/if} + {#if shareHandler && $config?.features?.enable_community_sharing && ($user?.role === 'admin' || $user?.permissions?.workspace?.skills_export)} + + {/if} + - {#if shareHandler && $config?.features?.enable_community_sharing && ($user?.role === 'admin' || $user?.permissions?.workspace?.skills_export)} - - {/if} {#if $user?.role === 'admin' || $user?.permissions?.workspace?.skills_export}