mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-17 18:46:55 +03:00
feat(ui): add genre and mood fields to AlbumSongs component
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
5f0c1e7387
commit
6b59f5f73a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user