mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-18 04:47:42 +03:00
Play the remainder of the album when clicking on a album's song
This commit is contained in:
parent
f8fb4c8f54
commit
7e0881f0ec
@ -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}
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user