Improve UI notices for series details

This commit is contained in:
Bogdan 2023-12-13 17:47:41 +02:00
parent a6bce8a64a
commit 18831d164d
1 changed files with 15 additions and 7 deletions

View File

@ -3,6 +3,7 @@ import moment from 'moment';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import React, { Component } from 'react'; import React, { Component } from 'react';
import TextTruncate from 'react-text-truncate'; import TextTruncate from 'react-text-truncate';
import Alert from 'Components/Alert';
import HeartRating from 'Components/HeartRating'; import HeartRating from 'Components/HeartRating';
import Icon from 'Components/Icon'; import Icon from 'Components/Icon';
import Label from 'Components/Label'; import Label from 'Components/Label';
@ -601,13 +602,19 @@ class SeriesDetails extends Component {
} }
{ {
!isFetching && episodesError && !isFetching && episodesError ?
<div>{translate('EpisodesLoadError')}</div> <Alert kind={kinds.DANGER}>
{translate('EpisodesLoadError')}
</Alert> :
null
} }
{ {
!isFetching && episodeFilesError && !isFetching && episodeFilesError ?
<div>{translate('EpisodeFilesLoadError')}</div> <Alert kind={kinds.DANGER}>
{translate('EpisodeFilesLoadError')}
</Alert> :
null
} }
{ {
@ -630,10 +637,11 @@ class SeriesDetails extends Component {
} }
{ {
isPopulated && !seasons.length && isPopulated && !seasons.length ?
<div> <Alert kind={kinds.WARNING}>
{translate('NoEpisodeInformation')} {translate('NoEpisodeInformation')}
</div> </Alert> :
null
} }
</div> </div>