feat(ui): add genre and mood fields to AlbumSongs component

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan 2025-04-08 18:13:37 -04:00
parent 5f0c1e7387
commit 6b59f5f73a

View File

@ -124,6 +124,14 @@ const AlbumSongs = (props) => {
size: isDesktop && <SizeField source="size" sortable={false} />,
channels: isDesktop && <NumberField source="channels" sortable={false} />,
bpm: isDesktop && <NumberField source="bpm" sortable={false} />,
genre: <TextField source="genre" sortable={false} />,
mood: isDesktop && (
<FunctionField
source="mood"
render={(r) => r.tags?.mood?.[0] ?? ''}
sortable={false}
/>
),
rating: isDesktop && config.enableStarRating && (
<RatingField
resource={'song'}
@ -139,7 +147,16 @@ const AlbumSongs = (props) => {
resource: 'albumSong',
columns: toggleableFields,
omittedColumns: ['title'],
defaultOff: ['channels', 'bpm', 'year', 'playCount', 'playDate', 'size'],
defaultOff: [
'channels',
'bpm',
'year',
'playCount',
'playDate',
'size',
'mood',
'genre',
],
})
const bulkActionsLabel = isDesktop