mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
commit
82079e644a
1 changed files with 5 additions and 3 deletions
|
|
@ -33,8 +33,8 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="mb-1.5 font-medium">{$i18n.t('Files')}</div>
|
<div class="mb-1.5 font-medium">{$i18n.t('Files')}</div>
|
||||||
|
|
||||||
<div>
|
<div class="flex flex-col gap-1">
|
||||||
{#each chatFiles as file}
|
{#each chatFiles as file, fileIdx}
|
||||||
<FileItem
|
<FileItem
|
||||||
className="w-full"
|
className="w-full"
|
||||||
url={`${file?.url}`}
|
url={`${file?.url}`}
|
||||||
|
|
@ -43,7 +43,9 @@
|
||||||
dismissible={true}
|
dismissible={true}
|
||||||
on:dismiss={() => {
|
on:dismiss={() => {
|
||||||
// Remove the file from the chatFiles array
|
// Remove the file from the chatFiles array
|
||||||
chatFiles = chatFiles.filter((f) => f.id !== file.id);
|
|
||||||
|
chatFiles.splice(fileIdx, 1);
|
||||||
|
chatFiles = chatFiles;
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue