|
|
@ -67,7 +67,6 @@ class SeriesIndexPoster extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
style,
|
|
|
|
|
|
|
|
id,
|
|
|
|
id,
|
|
|
|
title,
|
|
|
|
title,
|
|
|
|
monitored,
|
|
|
|
monitored,
|
|
|
@ -115,147 +114,144 @@ class SeriesIndexPoster extends Component {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={styles.container} style={style}>
|
|
|
|
<div className={styles.content}>
|
|
|
|
<div className={styles.content}>
|
|
|
|
<div className={styles.posterContainer}>
|
|
|
|
<div className={styles.posterContainer}>
|
|
|
|
<Label className={styles.controls}>
|
|
|
|
<Label className={styles.controls}>
|
|
|
|
<SpinnerIconButton
|
|
|
|
<SpinnerIconButton
|
|
|
|
className={styles.action}
|
|
|
|
className={styles.action}
|
|
|
|
name={icons.REFRESH}
|
|
|
|
name={icons.REFRESH}
|
|
|
|
title="Refresh series"
|
|
|
|
title="Refresh series"
|
|
|
|
isSpinning={isRefreshingSeries}
|
|
|
|
isSpinning={isRefreshingSeries}
|
|
|
|
onPress={onRefreshSeriesPress}
|
|
|
|
onPress={onRefreshSeriesPress}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
showSearchAction &&
|
|
|
|
|
|
|
|
<SpinnerIconButton
|
|
|
|
|
|
|
|
className={styles.action}
|
|
|
|
|
|
|
|
name={icons.SEARCH}
|
|
|
|
|
|
|
|
title="Search for monitored episodes"
|
|
|
|
|
|
|
|
isSpinning={isSearchingSeries}
|
|
|
|
|
|
|
|
onPress={onSearchPress}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<IconButton
|
|
|
|
|
|
|
|
className={styles.action}
|
|
|
|
|
|
|
|
name={icons.EDIT}
|
|
|
|
|
|
|
|
title="Edit Series"
|
|
|
|
|
|
|
|
onPress={this.onEditSeriesPress}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</Label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
status === 'ended' &&
|
|
|
|
showSearchAction &&
|
|
|
|
<div
|
|
|
|
<SpinnerIconButton
|
|
|
|
className={styles.ended}
|
|
|
|
className={styles.action}
|
|
|
|
title="Ended"
|
|
|
|
name={icons.SEARCH}
|
|
|
|
|
|
|
|
title="Search for monitored episodes"
|
|
|
|
|
|
|
|
isSpinning={isSearchingSeries}
|
|
|
|
|
|
|
|
onPress={onSearchPress}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<Link
|
|
|
|
<IconButton
|
|
|
|
className={styles.link}
|
|
|
|
className={styles.action}
|
|
|
|
style={elementStyle}
|
|
|
|
name={icons.EDIT}
|
|
|
|
to={link}
|
|
|
|
title="Edit Series"
|
|
|
|
>
|
|
|
|
onPress={this.onEditSeriesPress}
|
|
|
|
<SeriesPoster
|
|
|
|
/>
|
|
|
|
style={elementStyle}
|
|
|
|
</Label>
|
|
|
|
images={images}
|
|
|
|
|
|
|
|
size={250}
|
|
|
|
|
|
|
|
lazy={false}
|
|
|
|
|
|
|
|
overflow={true}
|
|
|
|
|
|
|
|
onError={this.onPosterLoadError}
|
|
|
|
|
|
|
|
onLoad={this.onPosterLoad}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
hasPosterError &&
|
|
|
|
|
|
|
|
<div className={styles.overlayTitle}>
|
|
|
|
|
|
|
|
{title}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</Link>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<SeriesIndexProgressBar
|
|
|
|
|
|
|
|
monitored={monitored}
|
|
|
|
|
|
|
|
status={status}
|
|
|
|
|
|
|
|
episodeCount={episodeCount}
|
|
|
|
|
|
|
|
episodeFileCount={episodeFileCount}
|
|
|
|
|
|
|
|
totalEpisodeCount={totalEpisodeCount}
|
|
|
|
|
|
|
|
posterWidth={posterWidth}
|
|
|
|
|
|
|
|
detailedProgressBar={detailedProgressBar}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
showTitle &&
|
|
|
|
|
|
|
|
<div className={styles.title}>
|
|
|
|
|
|
|
|
{title}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
showMonitored &&
|
|
|
|
|
|
|
|
<div className={styles.title}>
|
|
|
|
|
|
|
|
{monitored ? 'Monitored' : 'Unmonitored'}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
showQualityProfile &&
|
|
|
|
status === 'ended' &&
|
|
|
|
<div className={styles.title}>
|
|
|
|
<div
|
|
|
|
{qualityProfile.name}
|
|
|
|
className={styles.ended}
|
|
|
|
</div>
|
|
|
|
title="Ended"
|
|
|
|
|
|
|
|
/>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
<Link
|
|
|
|
nextAiring &&
|
|
|
|
className={styles.link}
|
|
|
|
<div className={styles.nextAiring}>
|
|
|
|
style={elementStyle}
|
|
|
|
{
|
|
|
|
to={link}
|
|
|
|
getRelativeDate(
|
|
|
|
>
|
|
|
|
nextAiring,
|
|
|
|
<SeriesPoster
|
|
|
|
shortDateFormat,
|
|
|
|
style={elementStyle}
|
|
|
|
showRelativeDates,
|
|
|
|
images={images}
|
|
|
|
{
|
|
|
|
size={250}
|
|
|
|
timeFormat,
|
|
|
|
lazy={false}
|
|
|
|
timeForToday: true
|
|
|
|
overflow={true}
|
|
|
|
}
|
|
|
|
onError={this.onPosterLoadError}
|
|
|
|
)
|
|
|
|
onLoad={this.onPosterLoad}
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<SeriesIndexPosterInfo
|
|
|
|
{
|
|
|
|
seasonCount={seasonCount}
|
|
|
|
hasPosterError &&
|
|
|
|
qualityProfile={qualityProfile}
|
|
|
|
<div className={styles.overlayTitle}>
|
|
|
|
showQualityProfile={showQualityProfile}
|
|
|
|
{title}
|
|
|
|
showRelativeDates={showRelativeDates}
|
|
|
|
</div>
|
|
|
|
shortDateFormat={shortDateFormat}
|
|
|
|
}
|
|
|
|
timeFormat={timeFormat}
|
|
|
|
</Link>
|
|
|
|
{...otherProps}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EditSeriesModalConnector
|
|
|
|
|
|
|
|
isOpen={isEditSeriesModalOpen}
|
|
|
|
|
|
|
|
seriesId={id}
|
|
|
|
|
|
|
|
onModalClose={this.onEditSeriesModalClose}
|
|
|
|
|
|
|
|
onDeleteSeriesPress={this.onDeleteSeriesPress}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<DeleteSeriesModal
|
|
|
|
|
|
|
|
isOpen={isDeleteSeriesModalOpen}
|
|
|
|
|
|
|
|
seriesId={id}
|
|
|
|
|
|
|
|
onModalClose={this.onDeleteSeriesModalClose}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<SeriesIndexProgressBar
|
|
|
|
|
|
|
|
monitored={monitored}
|
|
|
|
|
|
|
|
status={status}
|
|
|
|
|
|
|
|
episodeCount={episodeCount}
|
|
|
|
|
|
|
|
episodeFileCount={episodeFileCount}
|
|
|
|
|
|
|
|
totalEpisodeCount={totalEpisodeCount}
|
|
|
|
|
|
|
|
posterWidth={posterWidth}
|
|
|
|
|
|
|
|
detailedProgressBar={detailedProgressBar}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
showTitle &&
|
|
|
|
|
|
|
|
<div className={styles.title}>
|
|
|
|
|
|
|
|
{title}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
showMonitored &&
|
|
|
|
|
|
|
|
<div className={styles.title}>
|
|
|
|
|
|
|
|
{monitored ? 'Monitored' : 'Unmonitored'}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
showQualityProfile &&
|
|
|
|
|
|
|
|
<div className={styles.title}>
|
|
|
|
|
|
|
|
{qualityProfile.name}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
nextAiring &&
|
|
|
|
|
|
|
|
<div className={styles.nextAiring}>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
getRelativeDate(
|
|
|
|
|
|
|
|
nextAiring,
|
|
|
|
|
|
|
|
shortDateFormat,
|
|
|
|
|
|
|
|
showRelativeDates,
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
timeFormat,
|
|
|
|
|
|
|
|
timeForToday: true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<SeriesIndexPosterInfo
|
|
|
|
|
|
|
|
seasonCount={seasonCount}
|
|
|
|
|
|
|
|
qualityProfile={qualityProfile}
|
|
|
|
|
|
|
|
showQualityProfile={showQualityProfile}
|
|
|
|
|
|
|
|
showRelativeDates={showRelativeDates}
|
|
|
|
|
|
|
|
shortDateFormat={shortDateFormat}
|
|
|
|
|
|
|
|
timeFormat={timeFormat}
|
|
|
|
|
|
|
|
{...otherProps}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EditSeriesModalConnector
|
|
|
|
|
|
|
|
isOpen={isEditSeriesModalOpen}
|
|
|
|
|
|
|
|
seriesId={id}
|
|
|
|
|
|
|
|
onModalClose={this.onEditSeriesModalClose}
|
|
|
|
|
|
|
|
onDeleteSeriesPress={this.onDeleteSeriesPress}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<DeleteSeriesModal
|
|
|
|
|
|
|
|
isOpen={isDeleteSeriesModalOpen}
|
|
|
|
|
|
|
|
seriesId={id}
|
|
|
|
|
|
|
|
onModalClose={this.onDeleteSeriesModalClose}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SeriesIndexPoster.propTypes = {
|
|
|
|
SeriesIndexPoster.propTypes = {
|
|
|
|
style: PropTypes.object.isRequired,
|
|
|
|
|
|
|
|
id: PropTypes.number.isRequired,
|
|
|
|
id: PropTypes.number.isRequired,
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
monitored: PropTypes.bool.isRequired,
|
|
|
|
monitored: PropTypes.bool.isRequired,
|
|
|
|