mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
fix: disable file item click during upload
This commit is contained in:
parent
dff9254e34
commit
42d048741c
1 changed files with 8 additions and 0 deletions
|
|
@ -23,9 +23,17 @@
|
||||||
loading={file.status === 'uploading'}
|
loading={file.status === 'uploading'}
|
||||||
dismissible
|
dismissible
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
|
if (file.status === 'uploading') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dispatch('click', file.id);
|
dispatch('click', file.id);
|
||||||
}}
|
}}
|
||||||
on:dismiss={() => {
|
on:dismiss={() => {
|
||||||
|
if (file.status === 'uploading') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dispatch('delete', file.id);
|
dispatch('delete', file.id);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue