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 GitHub
parent 94e36d7f60
commit 77f6bc83ac
+3 -1
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 (