mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
web: disable multiple .torrent file selection in Add new torrent file selection dialog (#347)
This commit is contained in:
committed by
GitHub
parent
efb17ee48d
commit
25cf543b07
@@ -39,7 +39,11 @@ export default function LeftSideComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const [isTorrentSourceActive, setIsTorrentSourceActive] = useState(false)
|
const [isTorrentSourceActive, setIsTorrentSourceActive] = useState(false)
|
||||||
const { getRootProps, getInputProps, isDragActive } = useDropzone({ onDrop: handleCapture, accept: '.torrent' })
|
const { getRootProps, getInputProps, isDragActive } = useDropzone({
|
||||||
|
onDrop: handleCapture,
|
||||||
|
accept: '.torrent',
|
||||||
|
multiple: false,
|
||||||
|
})
|
||||||
|
|
||||||
const handleTorrentSourceChange = ({ target: { value } }) => setTorrentSource(value)
|
const handleTorrentSourceChange = ({ target: { value } }) => setTorrentSource(value)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user