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:
parent
1e24809ed6
commit
39161fdf47
1 changed files with 2 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ const PlaylistList = (props) => {
|
||||||
public: !isXsmall && (
|
public: !isXsmall && (
|
||||||
<TogglePublicInput source="public" sortByOrder={'DESC'} />
|
<TogglePublicInput source="public" sortByOrder={'DESC'} />
|
||||||
),
|
),
|
||||||
|
comment: <TextField source="comment" />,
|
||||||
}),
|
}),
|
||||||
[isDesktop, isXsmall]
|
[isDesktop, isXsmall]
|
||||||
)
|
)
|
||||||
|
|
@ -113,6 +114,7 @@ const PlaylistList = (props) => {
|
||||||
const columns = useSelectedFields({
|
const columns = useSelectedFields({
|
||||||
resource: 'playlist',
|
resource: 'playlist',
|
||||||
columns: toggleableFields,
|
columns: toggleableFields,
|
||||||
|
defaultOff: ['comment'],
|
||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue