mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(frontend): always show request modal option for tv
This commit is contained in:
@@ -328,6 +328,12 @@ const TvRequestModal: React.FC<RequestModalProps> = ({
|
|||||||
MediaRequestStatus.AVAILABLE && (
|
MediaRequestStatus.AVAILABLE && (
|
||||||
<Badge badgeType="success">Available</Badge>
|
<Badge badgeType="success">Available</Badge>
|
||||||
)}
|
)}
|
||||||
|
{mediaSeason?.status ===
|
||||||
|
MediaStatus.PARTIALLY_AVAILABLE && (
|
||||||
|
<Badge badgeType="success">
|
||||||
|
Partially Available
|
||||||
|
</Badge>
|
||||||
|
)}
|
||||||
{mediaSeason?.status === MediaStatus.AVAILABLE && (
|
{mediaSeason?.status === MediaStatus.AVAILABLE && (
|
||||||
<Badge badgeType="success">Available</Badge>
|
<Badge badgeType="success">Available</Badge>
|
||||||
)}
|
)}
|
||||||
|
@@ -97,7 +97,8 @@ const TitleCard: React.FC<TitleCardProps> = ({
|
|||||||
right: '-1px',
|
right: '-1px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{currentStatus === MediaStatus.AVAILABLE && (
|
{(currentStatus === MediaStatus.AVAILABLE ||
|
||||||
|
currentStatus === MediaStatus.PARTIALLY_AVAILABLE) && (
|
||||||
<Available className="rounded-tr-md" />
|
<Available className="rounded-tr-md" />
|
||||||
)}
|
)}
|
||||||
{currentStatus === MediaStatus.PENDING && (
|
{currentStatus === MediaStatus.PENDING && (
|
||||||
@@ -256,7 +257,8 @@ const TitleCard: React.FC<TitleCardProps> = ({
|
|||||||
</svg>
|
</svg>
|
||||||
</button>
|
</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">
|
<button className="w-full h-7 text-center text-white bg-green-400 rounded-sm ml-2">
|
||||||
<svg
|
<svg
|
||||||
className="w-4 mx-auto"
|
className="w-4 mx-auto"
|
||||||
|
@@ -175,9 +175,7 @@ const TvDetails: React.FC<TvDetailsProps> = ({ tv }) => {
|
|||||||
<FormattedMessage {...messages.request} />
|
<FormattedMessage {...messages.request} />
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{data.mediaInfo &&
|
{data.mediaInfo && data.mediaInfo.status !== MediaStatus.UNKNOWN && (
|
||||||
data.mediaInfo.status !== MediaStatus.UNKNOWN &&
|
|
||||||
data.mediaInfo.status !== MediaStatus.AVAILABLE && (
|
|
||||||
<ButtonWithDropdown
|
<ButtonWithDropdown
|
||||||
dropdownIcon={
|
dropdownIcon={
|
||||||
<svg
|
<svg
|
||||||
|
Reference in New Issue
Block a user