Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
82079e64
Unverified
Commit
82079e64
authored
Jul 17, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jul 17, 2024
Browse files
Merge pull request #3952 from open-webui/dev
fix
parents
c74e7df6
1e7a364c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/lib/components/chat/Controls/Controls.svelte
src/lib/components/chat/Controls/Controls.svelte
+5
-3
No files found.
src/lib/components/chat/Controls/Controls.svelte
View file @
82079e64
...
@@ -33,8 +33,8 @@
...
@@ -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 @@
...
@@ -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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment