fix: sort by album in songs view

This commit is contained in:
Deluan
2020-03-30 19:34:00 -04:00
parent 46f4f63212
commit 301fa2a957
2 changed files with 20 additions and 13 deletions
+16
View File
@@ -0,0 +1,16 @@
import { Link } from 'react-admin'
import React from 'react'
export const AlbumLinkField = (props) => (
<Link
to={`/album/${props.record.albumId}/show`}
onClick={(e) => e.stopPropagation()}
>
{props.record.album}
</Link>
)
AlbumLinkField.defaultProps = {
source: 'albumId',
addLabel: true
}