mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-15 03:46:04 +08: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…
x
Reference in New Issue
Block a user