fix(frontend): always show request modal option for tv

pull/175/head
sct 4 years ago
parent a99705f6a5
commit 2b46268824

@ -328,6 +328,12 @@ const TvRequestModal: React.FC<RequestModalProps> = ({
MediaRequestStatus.AVAILABLE && (
<Badge badgeType="success">Available</Badge>
)}
{mediaSeason?.status ===
MediaStatus.PARTIALLY_AVAILABLE && (
<Badge badgeType="success">
Partially Available
</Badge>
)}
{mediaSeason?.status === MediaStatus.AVAILABLE && (
<Badge badgeType="success">Available</Badge>
)}

@ -97,7 +97,8 @@ const TitleCard: React.FC<TitleCardProps> = ({
right: '-1px',
}}
>
{currentStatus === MediaStatus.AVAILABLE && (
{(currentStatus === MediaStatus.AVAILABLE ||
currentStatus === MediaStatus.PARTIALLY_AVAILABLE) && (
<Available className="rounded-tr-md" />
)}
{currentStatus === MediaStatus.PENDING && (
@ -256,7 +257,8 @@ const TitleCard: React.FC<TitleCardProps> = ({
</svg>
</button>
)}
{currentStatus === MediaStatus.AVAILABLE && (
{(currentStatus === MediaStatus.AVAILABLE ||
currentStatus === MediaStatus.PARTIALLY_AVAILABLE) && (
<button className="w-full h-7 text-center text-white bg-green-400 rounded-sm ml-2">
<svg
className="w-4 mx-auto"

@ -175,9 +175,7 @@ const TvDetails: React.FC<TvDetailsProps> = ({ tv }) => {
<FormattedMessage {...messages.request} />
</Button>
)}
{data.mediaInfo &&
data.mediaInfo.status !== MediaStatus.UNKNOWN &&
data.mediaInfo.status !== MediaStatus.AVAILABLE && (
{data.mediaInfo && data.mediaInfo.status !== MediaStatus.UNKNOWN && (
<ButtonWithDropdown
dropdownIcon={
<svg

Loading…
Cancel
Save