Add indicator for tracked content
This commit is contained in:
parent
094bac2471
commit
1f0c397f0a
@ -9,11 +9,30 @@ export default function ListDetails(props) {
|
||||
).join(', ');
|
||||
}
|
||||
|
||||
let wishlistStr = "";
|
||||
if (props.data.wishlisted === true) {
|
||||
wishlistStr = "Wishlisted";
|
||||
}
|
||||
if (props.data.tracked_episode !== null && props.data.tracked_season != null) {
|
||||
let season = props.data.tracked_season;
|
||||
let episode = props.data.tracked_episode;
|
||||
if ((season === 0) && (episode === 0)) {
|
||||
wishlistStr = "Whole show tracked";
|
||||
} else {
|
||||
wishlistStr = `Tracked from season ${season} episode ${episode}`;
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="col-xs-7 col-md-4">
|
||||
<div className="show-detail affix">
|
||||
<div className="affix">
|
||||
<h1 className="hidden-xs">{props.data.title}</h1>
|
||||
<h3 className="visible-xs">{props.data.title}</h3>
|
||||
{wishlistStr !== "" &&
|
||||
<span className="label label-default">
|
||||
<i className="fa fa-bookmark"></i> {wishlistStr}
|
||||
</span>
|
||||
}
|
||||
<h4>{props.data.year}</h4>
|
||||
{props.data.runtime &&
|
||||
<p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user