Skip to content

🎧 Your Personal Streaming Service

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

Deluan7e0881f0ec35
diff --git a/ui/src/album/AlbumSongs.js b/ui/src/album/AlbumSongs.js
index 3135df150..822d1e93b 100644
--- a/ui/src/album/AlbumSongs.js
+++ b/ui/src/album/AlbumSongs.js
@@ -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}
>