Make SmartPlaylists read-only
This commit is contained in:
@@ -10,7 +10,8 @@ import { makeStyles } from '@material-ui/core/styles'
|
||||
import PlaylistDetails from './PlaylistDetails'
|
||||
import PlaylistSongs from './PlaylistSongs'
|
||||
import PlaylistActions from './PlaylistActions'
|
||||
import { Title, isReadOnly } from '../common'
|
||||
import { Title, canChangeTracks } from '../common'
|
||||
|
||||
const useStyles = makeStyles(
|
||||
(theme) => ({
|
||||
playlistActions: {
|
||||
@@ -42,7 +43,7 @@ const PlaylistShowLayout = (props) => {
|
||||
>
|
||||
<PlaylistSongs
|
||||
{...props}
|
||||
readOnly={isReadOnly(record.owner)}
|
||||
readOnly={!canChangeTracks(record)}
|
||||
title={<Title subTitle={record.name} />}
|
||||
actions={
|
||||
<PlaylistActions
|
||||
|
||||
Reference in New Issue
Block a user