Fixed: Artist AlbumType ExpandbyDefault if has release in 30 days

also Fixes #313
This commit is contained in:
Qstick 2018-04-24 22:36:18 -04:00
parent 307c989409
commit d9422b4edc
2 changed files with 22 additions and 22 deletions

View File

@ -15,6 +15,7 @@
align-items: center;
width: 100%;
font-size: 24px;
cursor: pointer;
}
.albumTypeLabel {
@ -37,7 +38,7 @@
composes: link from 'Components/Link/Link.css';
flex-grow: 1;
margin: 0 20px;
width: 100%;
text-align: center;
}

View File

@ -54,7 +54,7 @@ class ArtistDetailsSeason extends Component {
isAfter(item.releaseDate, { days: -30 });
});
onExpandPress(name, expand && name > 0);
onExpandPress(name, expand);
}
//
@ -129,6 +129,10 @@ class ArtistDetailsSeason extends Component {
return (
<div
className={styles.albumType}
>
<Link
className={styles.expandButton}
onPress={this.onExpandPress}
>
<div className={styles.header}>
<div className={styles.left}>
@ -146,11 +150,6 @@ class ArtistDetailsSeason extends Component {
</div>
<Link
className={styles.expandButton}
onPress={this.onExpandPress}
>
<Icon
className={styles.expandButtonIcon}
name={isExpanded ? icons.COLLAPSE : icons.EXPAND}
@ -162,9 +161,9 @@ class ArtistDetailsSeason extends Component {
!isSmallScreen &&
<span>&nbsp;</span>
}
</Link>
</div>
</Link>
<div>
{