mirror of
https://github.com/open-webui/open-webui
synced 2025-02-16 18:22:29 +00:00
fix: disable file item click during upload
This commit is contained in:
parent
dff9254e34
commit
42d048741c
@ -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 New Issue
Block a user