Disable share downloading when EnableDownloads is false.
Fixes https://github.com/navidrome/navidrome/pull/2246#issuecomment-1472341635
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
import { shareUrl } from '../utils'
|
||||
import { Link } from '@material-ui/core'
|
||||
import { DateField } from '../common'
|
||||
import config from '../config'
|
||||
|
||||
export const ShareEdit = (props) => {
|
||||
const { id, basePath, hasCreate, ...rest } = props
|
||||
@@ -20,7 +21,7 @@ export const ShareEdit = (props) => {
|
||||
{url}
|
||||
</Link>
|
||||
<TextInput source="description" />
|
||||
<BooleanInput source="downloadable" />
|
||||
{config.enableDownloads && <BooleanInput source="downloadable" />}
|
||||
<DateTimeInput source="expiresAt" />
|
||||
<TextInput source="contents" disabled />
|
||||
<TextInput source="format" disabled />
|
||||
|
||||
Reference in New Issue
Block a user