mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-25 17:57:08 +01:00
Add config option to enable/disable Transcoding configuration
This commit is contained in:
parent
eb7d2dcaa1
commit
c816ca4525
12 changed files with 134 additions and 49 deletions
|
|
@ -2,6 +2,7 @@ import React from 'react'
|
|||
import { Datagrid, List, TextField } from 'react-admin'
|
||||
import { useMediaQuery } from '@material-ui/core'
|
||||
import { SimpleList, Title } from '../common'
|
||||
import config from '../config'
|
||||
|
||||
const TranscodingList = (props) => {
|
||||
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
||||
|
|
@ -23,7 +24,7 @@ const TranscodingList = (props) => {
|
|||
tertiaryText={(r) => r.defaultBitRate}
|
||||
/>
|
||||
) : (
|
||||
<Datagrid rowClick="edit">
|
||||
<Datagrid rowClick={config.enableTranscodingConfig ? 'edit' : 'show'}>
|
||||
<TextField source="name" />
|
||||
<TextField source="targetFormat" />
|
||||
<TextField source="defaultBitRate" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue