Check permissions before adding songs to playlists

This commit is contained in:
Deluan
2021-10-02 13:12:06 -04:00
parent 6c3e45de41
commit 9c29ee3651
6 changed files with 38 additions and 26 deletions
+2 -1
View File
@@ -30,6 +30,7 @@ import {
} from '../common'
import config from '../config'
import ArtistListActions from './ArtistListActions'
import { DraggableTypes } from '../consts'
const useStyles = makeStyles({
contextHeader: {
@@ -84,7 +85,7 @@ const ArtistFilter = (props) => {
const ArtistDatagridRow = (props) => {
const { record } = props
const [, dragArtistRef] = useDrag(() => ({
type: 'artist',
type: DraggableTypes.ARTIST,
item: { artistIds: [record.id] },
options: { dropEffect: 'copy' },
}))