Skip to content

Commit

Permalink
Update SongList.js (#1219)
Browse files Browse the repository at this point in the history
Genre and Comments columns in Songs listview (hidden by default)
  • Loading branch information
certuna committed Jul 2, 2021
1 parent 94e36d7 commit 77f6bc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/song/SongList.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,15 @@ const SongList = (props) => {
/>
),
bpm: isDesktop && <NumberField source="bpm" />,
genre: <TextField source="genre" />,
comment: <TextField source="comment" />,
}
}, [isDesktop, classes.ratingField])

const columns = useSelectedFields({
resource: 'song',
columns: toggleableFields,
defaultOff: ['bpm', 'playDate', 'albumArtist'],
defaultOff: ['bpm', 'playDate', 'albumArtist', 'genre', 'comment'],
})

return (
Expand Down

0 comments on commit 77f6bc8

Please sign in to comment.