Playlist view: optionally show comment column (#2073)

* playlist view: optionally show genre and comment columns

* Remove genre from Playlist columns, as it is not a valid attribute of playlist

Co-authored-by: Deluan <deluan@navidrome.org>
This commit is contained in:
paradajz 2023-01-25 03:15:41 +01:00 committed by Joe Stump
parent ee9212357e
commit 9ed12254d0
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -106,6 +106,7 @@ const PlaylistList = (props) => {
public: !isXsmall && (
<TogglePublicInput source="public" sortByOrder={'DESC'} />
),
comment: <TextField source="comment" />,
}),
[isDesktop, isXsmall]
)
@ -113,6 +114,7 @@ const PlaylistList = (props) => {
const columns = useSelectedFields({
resource: 'playlist',
columns: toggleableFields,
defaultOff: ['comment'],
})
return (