Play the remainder of the album when clicking on a album's song

This commit is contained in:
Deluan 2020-05-06 16:02:31 -04:00
parent f8fb4c8f54
commit 7e0881f0ec
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import classnames from 'classnames'
import { useDispatch } from 'react-redux'
import { Card, useMediaQuery } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import { setTrack } from '../audioplayer'
import { playAlbum } from '../audioplayer'
import { DurationField } from '../common'
import { SongDetails } from '../common'
@ -108,7 +108,7 @@ const AlbumSongs = (props) => {
) : (
<Datagrid
expand={!isXsmall && <SongDetails />}
rowClick={(id, basePath, record) => dispatch(setTrack(record))}
rowClick={(id) => dispatch(playAlbum(id, data))}
{...controllerProps}
hasBulkActions={hasBulkActions}
>