New: Release group column on series details

This commit is contained in:
Mark McDowall 2021-10-05 15:45:58 -07:00
parent 4bba820e5a
commit 30aa5f9070
4 changed files with 25 additions and 0 deletions

View File

@ -36,3 +36,9 @@
width: 100px;
}
.releaseGroup {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 120px;
}

View File

@ -68,6 +68,7 @@ class EpisodeRow extends Component {
episodeFilePath,
episodeFileRelativePath,
episodeFileSize,
releaseGroup,
alternateTitles,
columns
} = this.props;
@ -220,6 +221,17 @@ class EpisodeRow extends Component {
);
}
if (name === 'releaseGroup') {
return (
<TableRowCell
key={name}
className={styles.releaseGroup}
>
{releaseGroup}
</TableRowCell>
);
}
if (name === 'status') {
return (
<TableRowCell
@ -274,6 +286,7 @@ EpisodeRow.propTypes = {
episodeFilePath: PropTypes.string,
episodeFileRelativePath: PropTypes.string,
episodeFileSize: PropTypes.number,
releaseGroup: PropTypes.string,
mediaInfo: PropTypes.object,
alternateTitles: PropTypes.arrayOf(PropTypes.object).isRequired,
columns: PropTypes.arrayOf(PropTypes.object).isRequired,

View File

@ -17,6 +17,7 @@ function createMapStateToProps() {
episodeFilePath: episodeFile ? episodeFile.path : null,
episodeFileRelativePath: episodeFile ? episodeFile.relativePath : null,
episodeFileSize: episodeFile ? episodeFile.size : null,
releaseGroup: episodeFile ? episodeFile.releaseGroup : null,
alternateTitles: series.alternateTitles
};
}

View File

@ -79,6 +79,11 @@ export const defaultState = {
label: 'Size',
isVisible: false
},
{
name: 'releaseGroup',
label: 'Release Group',
isVisible: false
},
{
name: 'status',
label: 'Status',