|
|
@ -24,6 +24,8 @@ class AlbumStudioAlbum extends Component {
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
title,
|
|
|
|
title,
|
|
|
|
|
|
|
|
disambiguation,
|
|
|
|
|
|
|
|
albumType,
|
|
|
|
monitored,
|
|
|
|
monitored,
|
|
|
|
statistics,
|
|
|
|
statistics,
|
|
|
|
isSaving
|
|
|
|
isSaving
|
|
|
@ -36,7 +38,7 @@ class AlbumStudioAlbum extends Component {
|
|
|
|
} = statistics;
|
|
|
|
} = statistics;
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={styles.season}>
|
|
|
|
<div className={styles.album}>
|
|
|
|
<div className={styles.info}>
|
|
|
|
<div className={styles.info}>
|
|
|
|
<MonitorToggleButton
|
|
|
|
<MonitorToggleButton
|
|
|
|
monitored={monitored}
|
|
|
|
monitored={monitored}
|
|
|
@ -46,7 +48,15 @@ class AlbumStudioAlbum extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
`${title}`
|
|
|
|
disambiguation ? `${title} (${disambiguation})` : `${title}`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className={styles.albumType}>
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
`${albumType}`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -54,6 +64,7 @@ class AlbumStudioAlbum extends Component {
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
className={classNames(
|
|
|
|
className={classNames(
|
|
|
|
styles.tracks,
|
|
|
|
styles.tracks,
|
|
|
|
|
|
|
|
percentOfTracks < 100 && monitored && styles.missingWanted,
|
|
|
|
percentOfTracks === 100 && styles.allTracks
|
|
|
|
percentOfTracks === 100 && styles.allTracks
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
title={`${trackFileCount}/${totalTrackCount} tracks downloaded`}
|
|
|
|
title={`${trackFileCount}/${totalTrackCount} tracks downloaded`}
|
|
|
@ -70,6 +81,8 @@ class AlbumStudioAlbum extends Component {
|
|
|
|
AlbumStudioAlbum.propTypes = {
|
|
|
|
AlbumStudioAlbum.propTypes = {
|
|
|
|
id: PropTypes.number.isRequired,
|
|
|
|
id: PropTypes.number.isRequired,
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
|
|
|
|
disambiguation: PropTypes.string,
|
|
|
|
|
|
|
|
albumType: PropTypes.string.isRequired,
|
|
|
|
monitored: PropTypes.bool.isRequired,
|
|
|
|
monitored: PropTypes.bool.isRequired,
|
|
|
|
statistics: PropTypes.object.isRequired,
|
|
|
|
statistics: PropTypes.object.isRequired,
|
|
|
|
isSaving: PropTypes.bool.isRequired,
|
|
|
|
isSaving: PropTypes.bool.isRequired,
|
|
|
|