Disable file selector when upload is locked from another tab.
This commit is contained in:
parent
392e7c37a4
commit
e3956150a3
1 changed files with 6 additions and 0 deletions
|
@ -160,6 +160,12 @@ export default function WebUploadItem(props: Props) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
React.useEffect(() => {
|
||||||
|
if (locked && showFileSelector) {
|
||||||
|
setShowFileSelector(false);
|
||||||
|
}
|
||||||
|
}, [locked, showFileSelector]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<li className={'web-upload-item claim-preview claim-preview--padded claim-preview--inactive card--inline'}>
|
<li className={'web-upload-item claim-preview claim-preview--padded claim-preview--inactive card--inline'}>
|
||||||
<FileThumbnail thumbnail={params.thumbnail_url} />
|
<FileThumbnail thumbnail={params.thumbnail_url} />
|
||||||
|
|
Loading…
Reference in a new issue