feat: add link to album from Songs view
This commit is contained in:
+11
-1
@@ -6,6 +6,7 @@ import {
|
|||||||
Filter,
|
Filter,
|
||||||
List,
|
List,
|
||||||
NumberField,
|
NumberField,
|
||||||
|
ReferenceField,
|
||||||
SearchInput,
|
SearchInput,
|
||||||
Show,
|
Show,
|
||||||
SimpleShowLayout,
|
SimpleShowLayout,
|
||||||
@@ -80,7 +81,16 @@ const SongList = (props) => {
|
|||||||
rowClick={(id, basePath, record) => dispatch(setTrack(record))}
|
rowClick={(id, basePath, record) => dispatch(setTrack(record))}
|
||||||
>
|
>
|
||||||
<TextField source="title" />
|
<TextField source="title" />
|
||||||
{isDesktop && <TextField source="album" />}
|
{isDesktop && (
|
||||||
|
<ReferenceField
|
||||||
|
label="Album"
|
||||||
|
source="albumId"
|
||||||
|
reference="album"
|
||||||
|
link="show"
|
||||||
|
>
|
||||||
|
<TextField source="name" />
|
||||||
|
</ReferenceField>
|
||||||
|
)}
|
||||||
<TextField source="artist" />
|
<TextField source="artist" />
|
||||||
{isDesktop && <NumberField source="trackNumber" />}
|
{isDesktop && <NumberField source="trackNumber" />}
|
||||||
{isDesktop && <TextField source="maxYear" />}
|
{isDesktop && <TextField source="maxYear" />}
|
||||||
|
|||||||
Reference in New Issue
Block a user