Skip to content

🎧 Your Personal Streaming Service

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

Deluan6b59f5f73a2a
diff --git a/ui/src/album/AlbumSongs.jsx b/ui/src/album/AlbumSongs.jsx
index b5ca74a8a..bfb1a4d6a 100644
--- a/ui/src/album/AlbumSongs.jsx
+++ b/ui/src/album/AlbumSongs.jsx
@@ -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