fix(ui): remove 'all' badge from request cards (#2992)

if all seasons are requested for a TV show, show each indivdual season badge. This prevents the
admin from needing to open a second tab / navigate to see how many seasons / what seasons have been
requested.
pull/3024/head
aedelbro 2 years ago committed by GitHub
parent d8da5cbe9d
commit 5c01313cc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -357,12 +357,6 @@ const RequestCard = ({ request, onTitleData }: RequestCardProps) => {
: request.seasons.length,
})}
</span>
{title.seasons.filter((season) => season.seasonNumber !== 0)
.length === request.seasons.length ? (
<span className="mr-2 uppercase">
<Badge>{intl.formatMessage(globalMessages.all)}</Badge>
</span>
) : (
<div className="hide-scrollbar overflow-x-scroll">
{request.seasons.map((season) => (
<span key={`season-${season.id}`} className="mr-2">
@ -370,7 +364,6 @@ const RequestCard = ({ request, onTitleData }: RequestCardProps) => {
</span>
))}
</div>
)}
</div>
)}
<div className="mt-2 flex items-center text-sm sm:mt-1">

@ -420,12 +420,6 @@ const RequestItem = ({ request, revalidateList }: RequestItemProps) => {
: request.seasons.length,
})}
</span>
{title.seasons.filter((season) => season.seasonNumber !== 0)
.length === request.seasons.length ? (
<span className="mr-2 uppercase">
<Badge>{intl.formatMessage(globalMessages.all)}</Badge>
</span>
) : (
<div className="hide-scrollbar flex flex-nowrap overflow-x-scroll">
{request.seasons.map((season) => (
<span key={`season-${season.id}`} className="mr-2">
@ -433,7 +427,6 @@ const RequestItem = ({ request, revalidateList }: RequestItemProps) => {
</span>
))}
</div>
)}
</div>
)}
</div>

Loading…
Cancel
Save