Rename DevEnableShare to EnableSharing
This commit is contained in:
@@ -81,7 +81,7 @@ const ContextMenu = ({
|
||||
action: (data, ids) => dispatch(openAddToPlaylist({ selectedIds: ids })),
|
||||
},
|
||||
share: {
|
||||
enabled: config.devEnableShare,
|
||||
enabled: config.enableSharing,
|
||||
needData: false,
|
||||
label: translate('ra.action.share'),
|
||||
action: (record) => {
|
||||
|
||||
@@ -44,7 +44,7 @@ export const SongBulkActions = (props) => {
|
||||
icon={<RiPlayListAddFill />}
|
||||
className={classes.button}
|
||||
/>
|
||||
{config.devEnableShare && (
|
||||
{config.enableSharing && (
|
||||
<BatchShareButton {...props} className={classes.button} />
|
||||
)}
|
||||
<AddToPlaylistButton {...props} className={classes.button} />
|
||||
|
||||
@@ -65,7 +65,7 @@ export const SongContextMenu = ({
|
||||
),
|
||||
},
|
||||
share: {
|
||||
enabled: config.devEnableShare,
|
||||
enabled: config.enableSharing,
|
||||
label: translate('ra.action.share'),
|
||||
action: (record) => {
|
||||
dispatch(openShareMenu([record.id], 'song', record.title))
|
||||
|
||||
Reference in New Issue
Block a user