mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-16 04:00:38 +03:00
Fix AlbumLink label in Songs view
This commit is contained in:
parent
f8d9b1508e
commit
605253446a
@ -11,6 +11,5 @@ export const AlbumLinkField = (props) => (
|
||||
)
|
||||
|
||||
AlbumLinkField.defaultProps = {
|
||||
source: 'albumId',
|
||||
addLabel: true
|
||||
}
|
||||
|
@ -6,8 +6,7 @@ import {
|
||||
List,
|
||||
NumberField,
|
||||
SearchInput,
|
||||
TextField,
|
||||
useTranslate
|
||||
TextField
|
||||
} from 'react-admin'
|
||||
import { useMediaQuery } from '@material-ui/core'
|
||||
import {
|
||||
@ -31,7 +30,6 @@ const SongFilter = (props) => (
|
||||
)
|
||||
|
||||
const SongList = (props) => {
|
||||
const translate = useTranslate()
|
||||
const dispatch = useDispatch()
|
||||
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
||||
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md'))
|
||||
@ -65,13 +63,7 @@ const SongList = (props) => {
|
||||
rowClick={(id, basePath, record) => dispatch(setTrack(record))}
|
||||
>
|
||||
<TextField source="title" />
|
||||
{isDesktop && (
|
||||
<AlbumLinkField
|
||||
source="albumId"
|
||||
label={translate('resources.song.fields.album')}
|
||||
sortBy="album"
|
||||
/>
|
||||
)}
|
||||
{isDesktop && <AlbumLinkField source="album" />}
|
||||
<TextField source="artist" />
|
||||
{isDesktop && <NumberField source="trackNumber" />}
|
||||
{isDesktop && <NumberField source="playCount" />}
|
||||
|
Loading…
x
Reference in New Issue
Block a user