Add SongContextMenu to Album Songs
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import React, { Fragment, useEffect } from 'react'
|
import React, { Fragment, useEffect } from 'react'
|
||||||
import { useUnselectAll } from 'react-admin'
|
import { useUnselectAll } from 'react-admin'
|
||||||
import AddToQueueButton from '../song/AddToQueueButton'
|
import AddToQueueButton from '../song/AddToQueueButton'
|
||||||
|
import AddToPlaylistButton from '../song/AddToPlaylistButton'
|
||||||
|
|
||||||
export const AlbumSongBulkActions = (props) => {
|
export const AlbumSongBulkActions = (props) => {
|
||||||
const unselectAll = useUnselectAll()
|
const unselectAll = useUnselectAll()
|
||||||
@@ -11,6 +12,7 @@ export const AlbumSongBulkActions = (props) => {
|
|||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<AddToQueueButton {...props} />
|
<AddToQueueButton {...props} />
|
||||||
|
<AddToPlaylistButton {...props} />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import { Card, useMediaQuery } from '@material-ui/core'
|
|||||||
import { makeStyles } from '@material-ui/core/styles'
|
import { makeStyles } from '@material-ui/core/styles'
|
||||||
import { playTracks } from '../audioplayer'
|
import { playTracks } from '../audioplayer'
|
||||||
import { DurationField, SongDetails, SongDatagridRow } from '../common'
|
import { DurationField, SongDetails, SongDatagridRow } from '../common'
|
||||||
|
import { SongContextMenu } from '../song/SongContextMenu'
|
||||||
|
|
||||||
const useStyles = makeStyles(
|
const useStyles = makeStyles(
|
||||||
(theme) => ({
|
(theme) => ({
|
||||||
@@ -146,6 +147,7 @@ const AlbumSongs = (props) => {
|
|||||||
)}
|
)}
|
||||||
{isDesktop && <TextField source="artist" sortable={false} />}
|
{isDesktop && <TextField source="artist" sortable={false} />}
|
||||||
<DurationField source="duration" sortable={false} />
|
<DurationField source="duration" sortable={false} />
|
||||||
|
<SongContextMenu />
|
||||||
</SongsDatagrid>
|
</SongsDatagrid>
|
||||||
)}
|
)}
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user