fix(ui): disable bulk action buttons if transcoding edit is disabled
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user