|
|
|
@ -138,6 +138,14 @@ const TvDetails: React.FC<TvDetailsProps> = ({ tv }) => {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const isComplete =
|
|
|
|
|
data.seasons.filter((season) => season.seasonNumber !== 0).length <=
|
|
|
|
|
(
|
|
|
|
|
data.mediaInfo?.seasons.filter(
|
|
|
|
|
(season) => season.status === MediaStatus.AVAILABLE
|
|
|
|
|
) ?? []
|
|
|
|
|
).length;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
className="bg-cover bg-center -mx-4 -mt-2 px-4 sm:px-8 pt-4 "
|
|
|
|
@ -267,7 +275,9 @@ const TvDetails: React.FC<TvDetailsProps> = ({ tv }) => {
|
|
|
|
|
<FormattedMessage {...messages.request} />
|
|
|
|
|
</Button>
|
|
|
|
|
)}
|
|
|
|
|
{data.mediaInfo && data.mediaInfo.status !== MediaStatus.UNKNOWN && (
|
|
|
|
|
{data.mediaInfo &&
|
|
|
|
|
data.mediaInfo.status !== MediaStatus.UNKNOWN &&
|
|
|
|
|
!isComplete && (
|
|
|
|
|
<ButtonWithDropdown
|
|
|
|
|
dropdownIcon={
|
|
|
|
|
<svg
|
|
|
|
|