mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
New: Show series info in author books table and book details
This commit is contained in:
@@ -71,7 +71,7 @@ class BookRow extends Component {
|
||||
statistics,
|
||||
releaseDate,
|
||||
title,
|
||||
position,
|
||||
seriesTitle,
|
||||
pageCount,
|
||||
ratings,
|
||||
isSaving,
|
||||
@@ -129,13 +129,13 @@ class BookRow extends Component {
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'position') {
|
||||
if (name === 'series') {
|
||||
return (
|
||||
<TableRowCell
|
||||
key={name}
|
||||
className={styles.title}
|
||||
>
|
||||
{position || ''}
|
||||
{seriesTitle || ''}
|
||||
</TableRowCell>
|
||||
);
|
||||
}
|
||||
@@ -215,7 +215,7 @@ BookRow.propTypes = {
|
||||
monitored: PropTypes.bool.isRequired,
|
||||
releaseDate: PropTypes.string,
|
||||
title: PropTypes.string.isRequired,
|
||||
position: PropTypes.string,
|
||||
seriesTitle: PropTypes.string.isRequired,
|
||||
pageCount: PropTypes.number,
|
||||
ratings: PropTypes.object.isRequired,
|
||||
titleSlug: PropTypes.string.isRequired,
|
||||
|
||||
@@ -143,6 +143,7 @@ class BookDetails extends Component {
|
||||
id,
|
||||
titleSlug,
|
||||
title,
|
||||
seriesTitle,
|
||||
pageCount,
|
||||
overview,
|
||||
statistics = {},
|
||||
@@ -301,6 +302,10 @@ class BookDetails extends Component {
|
||||
</div>
|
||||
|
||||
<div className={styles.details}>
|
||||
<div>
|
||||
{seriesTitle}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{
|
||||
!!pageCount &&
|
||||
@@ -510,6 +515,7 @@ BookDetails.propTypes = {
|
||||
id: PropTypes.number.isRequired,
|
||||
titleSlug: PropTypes.string.isRequired,
|
||||
title: PropTypes.string.isRequired,
|
||||
seriesTitle: PropTypes.string.isRequired,
|
||||
pageCount: PropTypes.number,
|
||||
overview: PropTypes.string,
|
||||
statistics: PropTypes.object.isRequired,
|
||||
|
||||
Reference in New Issue
Block a user