mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-08 23:57:59 -05:00
fix(blacklist): add back the blacklist button on TitleCard for Plex (#1463)
The PR #1398 introduced an issue where the blacklist button was not visible anymore on the TitleCards for Plex. This PR fixes it.
This commit is contained in:
@@ -373,11 +373,10 @@ const TitleCard = ({
|
|||||||
: intl.formatMessage(globalMessages.tvshow)}
|
: intl.formatMessage(globalMessages.tvshow)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{showDetail &&
|
{showDetail && currentStatus !== MediaStatus.BLACKLISTED && (
|
||||||
currentStatus !== MediaStatus.BLACKLISTED &&
|
<div className="flex flex-col gap-1">
|
||||||
user?.userType !== UserType.PLEX && (
|
{user?.userType !== UserType.PLEX &&
|
||||||
<div className="flex flex-col gap-1">
|
(toggleWatchlist ? (
|
||||||
{toggleWatchlist ? (
|
|
||||||
<Button
|
<Button
|
||||||
buttonType={'ghost'}
|
buttonType={'ghost'}
|
||||||
className="z-40"
|
className="z-40"
|
||||||
@@ -394,23 +393,23 @@ const TitleCard = ({
|
|||||||
>
|
>
|
||||||
<MinusCircleIcon className={'h-3'} />
|
<MinusCircleIcon className={'h-3'} />
|
||||||
</Button>
|
</Button>
|
||||||
|
))}
|
||||||
|
{showHideButton &&
|
||||||
|
currentStatus !== MediaStatus.PROCESSING &&
|
||||||
|
currentStatus !== MediaStatus.AVAILABLE &&
|
||||||
|
currentStatus !== MediaStatus.PARTIALLY_AVAILABLE &&
|
||||||
|
currentStatus !== MediaStatus.PENDING && (
|
||||||
|
<Button
|
||||||
|
buttonType={'ghost'}
|
||||||
|
className="z-40"
|
||||||
|
buttonSize={'sm'}
|
||||||
|
onClick={() => setShowBlacklistModal(true)}
|
||||||
|
>
|
||||||
|
<EyeSlashIcon className={'h-3'} />
|
||||||
|
</Button>
|
||||||
)}
|
)}
|
||||||
{showHideButton &&
|
</div>
|
||||||
currentStatus !== MediaStatus.PROCESSING &&
|
)}
|
||||||
currentStatus !== MediaStatus.AVAILABLE &&
|
|
||||||
currentStatus !== MediaStatus.PARTIALLY_AVAILABLE &&
|
|
||||||
currentStatus !== MediaStatus.PENDING && (
|
|
||||||
<Button
|
|
||||||
buttonType={'ghost'}
|
|
||||||
className="z-40"
|
|
||||||
buttonSize={'sm'}
|
|
||||||
onClick={() => setShowBlacklistModal(true)}
|
|
||||||
>
|
|
||||||
<EyeSlashIcon className={'h-3'} />
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{showDetail &&
|
{showDetail &&
|
||||||
showHideButton &&
|
showHideButton &&
|
||||||
currentStatus == MediaStatus.BLACKLISTED && (
|
currentStatus == MediaStatus.BLACKLISTED && (
|
||||||
|
|||||||
Reference in New Issue
Block a user