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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

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 (