mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
refac
This commit is contained in:
parent
ceae3d48e6
commit
6812d3b9d1
1 changed files with 6 additions and 1 deletions
|
|
@ -16,6 +16,7 @@
|
||||||
import ChevronDown from '$lib/components/icons/ChevronDown.svelte';
|
import ChevronDown from '$lib/components/icons/ChevronDown.svelte';
|
||||||
import ChevronRight from '$lib/components/icons/ChevronRight.svelte';
|
import ChevronRight from '$lib/components/icons/ChevronRight.svelte';
|
||||||
import PageEdit from '$lib/components/icons/PageEdit.svelte';
|
import PageEdit from '$lib/components/icons/PageEdit.svelte';
|
||||||
|
import DocumentPage from '$lib/components/icons/DocumentPage.svelte';
|
||||||
|
|
||||||
const i18n = getContext('i18n');
|
const i18n = getContext('i18n');
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
@ -165,10 +166,14 @@
|
||||||
<Tooltip content={$i18n.t('Note')} placement="top">
|
<Tooltip content={$i18n.t('Note')} placement="top">
|
||||||
<PageEdit className="size-4" />
|
<PageEdit className="size-4" />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{:else}
|
{:else if item.type === 'collection'}
|
||||||
<Tooltip content={$i18n.t('Collection')} placement="top">
|
<Tooltip content={$i18n.t('Collection')} placement="top">
|
||||||
<Database className="size-4" />
|
<Database className="size-4" />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
{:else if item.type === 'file'}
|
||||||
|
<Tooltip content={$i18n.t('File')} placement="top">
|
||||||
|
<DocumentPage className="size-4" />
|
||||||
|
</Tooltip>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<Tooltip
|
<Tooltip
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue