Show year range over the album art when in "artist view" mode

This commit is contained in:
Deluan 2020-07-29 22:34:33 -04:00
parent 38b341ebc5
commit 3383327c51
1 changed files with 7 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import { Link } from 'react-router-dom'
import { linkToRecord, Loading } from 'react-admin'
import { withContentRect } from 'react-measure'
import subsonic from '../subsonic'
import { ArtistLinkField } from '../common'
import { ArtistLinkField, RangeField } from '../common'
import AlbumContextMenu from '../common/AlbumContextMenu.js'
const useStyles = makeStyles((theme) => ({
@ -99,7 +99,12 @@ const AlbumGridTile = ({ showArtist, record, basePath }) => {
className={classes.artistLink}
/>
) : (
record.maxYear || ''
<RangeField
record={record}
source={'year'}
sortBy={'maxYear'}
sortByOrder={'DESC'}
/>
)}
</div>
}