|
|
|
@ -205,6 +205,7 @@ class AlbumDetails extends Component {
|
|
|
|
|
isFetching,
|
|
|
|
|
isPopulated,
|
|
|
|
|
albumsError,
|
|
|
|
|
tracksError,
|
|
|
|
|
trackFilesError,
|
|
|
|
|
hasTrackFiles,
|
|
|
|
|
shortDateFormat,
|
|
|
|
@ -552,8 +553,9 @@ class AlbumDetails extends Component {
|
|
|
|
|
|
|
|
|
|
<div className={styles.contentContainer}>
|
|
|
|
|
{
|
|
|
|
|
!isPopulated && !albumsError && !trackFilesError &&
|
|
|
|
|
<LoadingIndicator />
|
|
|
|
|
!isPopulated && !albumsError && !tracksError && !trackFilesError ?
|
|
|
|
|
<LoadingIndicator /> :
|
|
|
|
|
null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
@ -564,6 +566,14 @@ class AlbumDetails extends Component {
|
|
|
|
|
null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
!isFetching && tracksError ?
|
|
|
|
|
<Alert kind={kinds.DANGER}>
|
|
|
|
|
{translate('TracksLoadError')}
|
|
|
|
|
</Alert> :
|
|
|
|
|
null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
!isFetching && trackFilesError ?
|
|
|
|
|
<Alert kind={kinds.DANGER}>
|
|
|
|
@ -592,6 +602,14 @@ class AlbumDetails extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
isPopulated && !media.length ?
|
|
|
|
|
<Alert kind={kinds.WARNING}>
|
|
|
|
|
{translate('NoMediumInformation')}
|
|
|
|
|
</Alert> :
|
|
|
|
|
null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<OrganizePreviewModalConnector
|
|
|
|
@ -686,6 +704,7 @@ AlbumDetails.propTypes = {
|
|
|
|
|
|
|
|
|
|
AlbumDetails.defaultProps = {
|
|
|
|
|
secondaryTypes: [],
|
|
|
|
|
statistics: {},
|
|
|
|
|
isSaving: false
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|