This commit is contained in:
Timothy Jaeryang Baek
2025-09-25 13:17:58 -05:00
parent b1006a2b57
commit eeed0df743

View File

@@ -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