feat(ui): conditionally display 'path' field in LibraryList for desktop view
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -21,6 +21,7 @@ const LibraryFilter = (props) => (
|
|||||||
|
|
||||||
const LibraryList = (props) => {
|
const LibraryList = (props) => {
|
||||||
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
||||||
|
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('lg'))
|
||||||
useResourceRefresh('library')
|
useResourceRefresh('library')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -40,7 +41,7 @@ const LibraryList = (props) => {
|
|||||||
) : (
|
) : (
|
||||||
<Datagrid rowClick="edit">
|
<Datagrid rowClick="edit">
|
||||||
<TextField source="name" />
|
<TextField source="name" />
|
||||||
<TextField source="path" />
|
{isDesktop && <TextField source="path" />}
|
||||||
<BooleanField source="defaultNewUsers" />
|
<BooleanField source="defaultNewUsers" />
|
||||||
<NumberField source="totalSongs" />
|
<NumberField source="totalSongs" />
|
||||||
<NumberField source="totalAlbums" />
|
<NumberField source="totalAlbums" />
|
||||||
|
|||||||
Reference in New Issue
Block a user