fix(ui): disable bulk action buttons if transcoding edit is disabled
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
4156602158
commit
98a6819390
1 changed files with 5 additions and 1 deletions
|
|
@ -7,7 +7,11 @@ import config from '../config'
|
||||||
const TranscodingList = (props) => {
|
const TranscodingList = (props) => {
|
||||||
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
||||||
return (
|
return (
|
||||||
<List exporter={false} {...props}>
|
<List
|
||||||
|
{...props}
|
||||||
|
exporter={false}
|
||||||
|
bulkActionButtons={config.enableTranscodingConfig}
|
||||||
|
>
|
||||||
{isXsmall ? (
|
{isXsmall ? (
|
||||||
<SimpleList
|
<SimpleList
|
||||||
primaryText={(r) => r.name}
|
primaryText={(r) => r.name}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue