Update SongList.js (#1219)

Genre and Comments columns in Songs listview (hidden by default)
This commit is contained in:
certuna 2021-07-02 16:18:45 +02:00 committed by Joe Stump
parent f0d5ed2104
commit 7724fe9c16
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -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 (