Disable album songs sorting
This commit is contained in:
parent
a88270a22b
commit
e369cbf493
|
@ -163,14 +163,19 @@ const AlbumSongs = (props) => {
|
|||
source="trackNumber"
|
||||
sortBy="discNumber asc, trackNumber asc"
|
||||
label="#"
|
||||
sortable={false}
|
||||
/>
|
||||
)}
|
||||
{isDesktop && <TextField source="title" />}
|
||||
{isDesktop && <TextField source="title" sortable={false} />}
|
||||
{!isDesktop && (
|
||||
<FunctionField source="title" render={trackName} />
|
||||
<FunctionField
|
||||
source="title"
|
||||
render={trackName}
|
||||
sortable={false}
|
||||
/>
|
||||
)}
|
||||
{isDesktop && <TextField source="artist" />}
|
||||
<DurationField source="duration" />
|
||||
{isDesktop && <TextField source="artist" sortable={false} />}
|
||||
<DurationField source="duration" sortable={false} />
|
||||
</SongsDatagrid>
|
||||
)}
|
||||
</Card>
|
||||
|
|
Loading…
Reference in New Issue