mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-05 20:42:19 -07:00
Improve messaging for no mediums on album details
This commit is contained in:
parent
739019498f
commit
e2f8753a6a
2 changed files with 23 additions and 2 deletions
|
@ -205,6 +205,7 @@ class AlbumDetails extends Component {
|
||||||
isFetching,
|
isFetching,
|
||||||
isPopulated,
|
isPopulated,
|
||||||
albumsError,
|
albumsError,
|
||||||
|
tracksError,
|
||||||
trackFilesError,
|
trackFilesError,
|
||||||
hasTrackFiles,
|
hasTrackFiles,
|
||||||
shortDateFormat,
|
shortDateFormat,
|
||||||
|
@ -552,8 +553,9 @@ class AlbumDetails extends Component {
|
||||||
|
|
||||||
<div className={styles.contentContainer}>
|
<div className={styles.contentContainer}>
|
||||||
{
|
{
|
||||||
!isPopulated && !albumsError && !trackFilesError &&
|
!isPopulated && !albumsError && !tracksError && !trackFilesError ?
|
||||||
<LoadingIndicator />
|
<LoadingIndicator /> :
|
||||||
|
null
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -564,6 +566,14 @@ class AlbumDetails extends Component {
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
!isFetching && tracksError ?
|
||||||
|
<Alert kind={kinds.DANGER}>
|
||||||
|
{translate('TracksLoadError')}
|
||||||
|
</Alert> :
|
||||||
|
null
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
!isFetching && trackFilesError ?
|
!isFetching && trackFilesError ?
|
||||||
<Alert kind={kinds.DANGER}>
|
<Alert kind={kinds.DANGER}>
|
||||||
|
@ -592,6 +602,14 @@ class AlbumDetails extends Component {
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
isPopulated && !media.length ?
|
||||||
|
<Alert kind={kinds.WARNING}>
|
||||||
|
{translate('NoMediumInformation')}
|
||||||
|
</Alert> :
|
||||||
|
null
|
||||||
|
}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<OrganizePreviewModalConnector
|
<OrganizePreviewModalConnector
|
||||||
|
@ -686,6 +704,7 @@ AlbumDetails.propTypes = {
|
||||||
|
|
||||||
AlbumDetails.defaultProps = {
|
AlbumDetails.defaultProps = {
|
||||||
secondaryTypes: [],
|
secondaryTypes: [],
|
||||||
|
statistics: {},
|
||||||
isSaving: false
|
isSaving: false
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -812,6 +812,7 @@
|
||||||
"NoLeaveIt": "No, Leave It",
|
"NoLeaveIt": "No, Leave It",
|
||||||
"NoLimitForAnyDuration": "No limit for any duration",
|
"NoLimitForAnyDuration": "No limit for any duration",
|
||||||
"NoLogFiles": "No log files",
|
"NoLogFiles": "No log files",
|
||||||
|
"NoMediumInformation": "No medium information is available.",
|
||||||
"NoMinimumForAnyDuration": "No minimum for any duration",
|
"NoMinimumForAnyDuration": "No minimum for any duration",
|
||||||
"NoMissingItems": "No missing items",
|
"NoMissingItems": "No missing items",
|
||||||
"NoResultsFound": "No results found",
|
"NoResultsFound": "No results found",
|
||||||
|
@ -1248,6 +1249,7 @@
|
||||||
"TrackStatus": "Track status",
|
"TrackStatus": "Track status",
|
||||||
"TrackTitle": "Track Title",
|
"TrackTitle": "Track Title",
|
||||||
"Tracks": "Tracks",
|
"Tracks": "Tracks",
|
||||||
|
"TracksLoadError": "Unable to load tracks",
|
||||||
"True": "True",
|
"True": "True",
|
||||||
"Type": "Type",
|
"Type": "Type",
|
||||||
"URLBase": "URL Base",
|
"URLBase": "URL Base",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue