Disable creation of shares when feature is disabled.
Fix https://github.com/navidrome/navidrome/pull/2106#issuecomment-1404731388
This commit is contained in:
@@ -7,6 +7,7 @@ import { BatchPlayButton } from './index'
|
||||
import { AddToPlaylistButton } from './AddToPlaylistButton'
|
||||
import { makeStyles } from '@material-ui/core/styles'
|
||||
import { BatchShareButton } from './BatchShareButton'
|
||||
import config from '../config'
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
button: {
|
||||
@@ -43,7 +44,9 @@ export const SongBulkActions = (props) => {
|
||||
icon={<RiPlayListAddFill />}
|
||||
className={classes.button}
|
||||
/>
|
||||
<BatchShareButton {...props} className={classes.button} />
|
||||
{config.devEnableShare && (
|
||||
<BatchShareButton {...props} className={classes.button} />
|
||||
)}
|
||||
<AddToPlaylistButton {...props} className={classes.button} />
|
||||
</Fragment>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user