|
@@ -12,6 +12,7 @@
|
|
import ArchiveBox from '$lib/components/icons/ArchiveBox.svelte';
|
|
import ArchiveBox from '$lib/components/icons/ArchiveBox.svelte';
|
|
import DocumentDuplicate from '$lib/components/icons/DocumentDuplicate.svelte';
|
|
import DocumentDuplicate from '$lib/components/icons/DocumentDuplicate.svelte';
|
|
import ArrowDownTray from '$lib/components/icons/ArrowDownTray.svelte';
|
|
import ArrowDownTray from '$lib/components/icons/ArrowDownTray.svelte';
|
|
|
|
+ import { config } from '$lib/stores';
|
|
|
|
|
|
const i18n = getContext('i18n');
|
|
const i18n = getContext('i18n');
|
|
|
|
|
|
@@ -69,15 +70,17 @@
|
|
<div class="flex items-center">{$i18n.t('Edit')}</div>
|
|
<div class="flex items-center">{$i18n.t('Edit')}</div>
|
|
</DropdownMenu.Item>
|
|
</DropdownMenu.Item>
|
|
|
|
|
|
- <DropdownMenu.Item
|
|
|
|
- class="flex gap-2 items-center px-3 py-2 text-sm font-medium cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
|
|
- on:click={() => {
|
|
|
|
- shareHandler();
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
- <Share />
|
|
|
|
- <div class="flex items-center">{$i18n.t('Share')}</div>
|
|
|
|
- </DropdownMenu.Item>
|
|
|
|
|
|
+ {#if $config.features.enable_community_sharing}
|
|
|
|
+ <DropdownMenu.Item
|
|
|
|
+ class="flex gap-2 items-center px-3 py-2 text-sm font-medium cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
|
|
+ on:click={() => {
|
|
|
|
+ shareHandler();
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
|
|
+ <Share />
|
|
|
|
+ <div class="flex items-center">{$i18n.t('Share')}</div>
|
|
|
|
+ </DropdownMenu.Item>
|
|
|
|
+ {/if}
|
|
|
|
|
|
<DropdownMenu.Item
|
|
<DropdownMenu.Item
|
|
class="flex gap-2 items-center px-3 py-2 text-sm font-medium cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
class="flex gap-2 items-center px-3 py-2 text-sm font-medium cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|