mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -190,15 +190,26 @@
|
|||||||
</DropdownMenu.Item>
|
</DropdownMenu.Item>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
<DropdownMenu.Item
|
<Tooltip
|
||||||
class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
content={fileUploadCapableModels.length !== selectedModels.length
|
||||||
on:click={() => {
|
? $i18n.t('Model(s) do not support file upload')
|
||||||
showAttachWebpageModal = true;
|
: !fileUploadEnabled
|
||||||
}}
|
? $i18n.t('You do not have permission to upload files.')
|
||||||
|
: ''}
|
||||||
|
className="w-full"
|
||||||
>
|
>
|
||||||
<GlobeAlt />
|
<DropdownMenu.Item
|
||||||
<div class="line-clamp-1">{$i18n.t('Attach Webpage')}</div>
|
class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
||||||
</DropdownMenu.Item>
|
on:click={() => {
|
||||||
|
if (fileUploadEnabled) {
|
||||||
|
showAttachWebpageModal = true;
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<GlobeAlt />
|
||||||
|
<div class="line-clamp-1">{$i18n.t('Attach Webpage')}</div>
|
||||||
|
</DropdownMenu.Item>
|
||||||
|
</Tooltip>
|
||||||
|
|
||||||
{#if $config?.features?.enable_notes ?? false}
|
{#if $config?.features?.enable_notes ?? false}
|
||||||
<Tooltip
|
<Tooltip
|
||||||
|
|||||||
Reference in New Issue
Block a user