Rename DevEnableShare to EnableSharing
This commit is contained in:
+2
-2
@@ -110,7 +110,7 @@ const Admin = (props) => {
|
||||
name="radio"
|
||||
{...(permissions === 'admin' ? radio.admin : radio.all)}
|
||||
/>,
|
||||
config.devEnableShare && <Resource name="share" {...share} />,
|
||||
config.enableSharing && <Resource name="share" {...share} />,
|
||||
<Resource
|
||||
name="playlist"
|
||||
{...playlist}
|
||||
@@ -142,7 +142,7 @@ const Admin = (props) => {
|
||||
}
|
||||
|
||||
const AppWithHotkeys = () => {
|
||||
if (config.devEnableShare && shareInfo) {
|
||||
if (config.enableSharing && shareInfo) {
|
||||
return <SharePlayer />
|
||||
}
|
||||
return (
|
||||
|
||||
@@ -108,7 +108,7 @@ const AlbumActions = ({
|
||||
>
|
||||
<PlaylistAddIcon />
|
||||
</Button>
|
||||
{config.devEnableShare && (
|
||||
{config.enableSharing && (
|
||||
<Button onClick={handleShare} label={translate('ra.action.share')}>
|
||||
<ShareIcon />
|
||||
</Button>
|
||||
|
||||
@@ -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))
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ const defaultConfig = {
|
||||
defaultLanguage: '',
|
||||
defaultUIVolume: 100,
|
||||
enableUserEditing: true,
|
||||
devEnableShare: true,
|
||||
enableSharing: true,
|
||||
devSidebarPlaylists: true,
|
||||
lastFMEnabled: true,
|
||||
lastFMApiKey: '9b94a5515ea66b2da3ec03c12300327e',
|
||||
|
||||
@@ -139,7 +139,7 @@ const PlaylistActions = ({ className, ids, data, record, ...rest }) => {
|
||||
>
|
||||
<RiPlayListAddFill />
|
||||
</Button>
|
||||
{config.devEnableShare && (
|
||||
{config.enableSharing && (
|
||||
<Button onClick={handleShare} label={translate('ra.action.share')}>
|
||||
<ShareIcon />
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user