New: Add book, series and files counts to author details page

pull/1237/head
ta264 3 years ago
parent 8b19f02ade
commit 1e82c7a67a

@ -164,7 +164,8 @@ class AuthorDetails extends Component {
previousAuthor, previousAuthor,
nextAuthor, nextAuthor,
onRefreshPress, onRefreshPress,
onSearchPress onSearchPress,
statistics
} = this.props; } = this.props;
const { const {
@ -331,35 +332,35 @@ class AuthorDetails extends Component {
className={styles.tab} className={styles.tab}
selectedClassName={styles.selectedTab} selectedClassName={styles.selectedTab}
> >
Books {translate('BooksTotal', [statistics.totalBookCount])}
</Tab> </Tab>
<Tab <Tab
className={styles.tab} className={styles.tab}
selectedClassName={styles.selectedTab} selectedClassName={styles.selectedTab}
> >
Series {translate('SeriesTotal', [series.length])}
</Tab> </Tab>
<Tab <Tab
className={styles.tab} className={styles.tab}
selectedClassName={styles.selectedTab} selectedClassName={styles.selectedTab}
> >
History {translate('History')}
</Tab> </Tab>
<Tab <Tab
className={styles.tab} className={styles.tab}
selectedClassName={styles.selectedTab} selectedClassName={styles.selectedTab}
> >
Search {translate('Search')}
</Tab> </Tab>
<Tab <Tab
className={styles.tab} className={styles.tab}
selectedClassName={styles.selectedTab} selectedClassName={styles.selectedTab}
> >
Files {translate('FilesTotal', [statistics.bookFileCount])}
</Tab> </Tab>
{ {

@ -76,6 +76,7 @@
"BookMonitoring": "Book Monitoring", "BookMonitoring": "Book Monitoring",
"BookNaming": "Book Naming", "BookNaming": "Book Naming",
"Books": "Books", "Books": "Books",
"BooksTotal": "Books ({0})",
"BookStudio": "Book Studio", "BookStudio": "Book Studio",
"BookTitle": "Book Title", "BookTitle": "Book Title",
"Branch": "Branch", "Branch": "Branch",
@ -229,6 +230,7 @@
"Filename": "Filename", "Filename": "Filename",
"FileNames": "File Names", "FileNames": "File Names",
"Files": "Files", "Files": "Files",
"FilesTotal": "Files ({0})",
"FilterAnalyticsEvents": "Filter Analytics Events", "FilterAnalyticsEvents": "Filter Analytics Events",
"FilterAuthor": "Filter Author", "FilterAuthor": "Filter Author",
"FilterPlaceHolder": "Filter Book", "FilterPlaceHolder": "Filter Book",
@ -553,6 +555,7 @@
"SendMetadataToCalibre": "Send Metadata to Calibre", "SendMetadataToCalibre": "Send Metadata to Calibre",
"Series": "Series", "Series": "Series",
"SeriesNumber": "Series Number", "SeriesNumber": "Series Number",
"SeriesTotal": "Series ({0})",
"SetPermissions": "Set Permissions", "SetPermissions": "Set Permissions",
"SetPermissionsLinuxHelpText": "Should chmod be run when files are imported/renamed?", "SetPermissionsLinuxHelpText": "Should chmod be run when files are imported/renamed?",
"SetPermissionsLinuxHelpTextWarning": "If you're unsure what these settings do, do not alter them.", "SetPermissionsLinuxHelpTextWarning": "If you're unsure what these settings do, do not alter them.",
@ -574,9 +577,9 @@
"ShowPath": "Show Path", "ShowPath": "Show Path",
"ShowQualityProfile": "Show Quality Profile", "ShowQualityProfile": "Show Quality Profile",
"ShowQualityProfileHelpText": "Show quality profile under poster", "ShowQualityProfileHelpText": "Show quality profile under poster",
"ShowReleaseDate": "Show Release Date",
"ShowRelativeDates": "Show Relative Dates", "ShowRelativeDates": "Show Relative Dates",
"ShowRelativeDatesHelpText": "Show relative (Today/Yesterday/etc) or absolute dates", "ShowRelativeDatesHelpText": "Show relative (Today/Yesterday/etc) or absolute dates",
"ShowReleaseDate": "Show Release Date",
"ShowSearch": "Show Search", "ShowSearch": "Show Search",
"ShowSearchActionHelpText": "Show search button on hover", "ShowSearchActionHelpText": "Show search button on hover",
"ShowSizeOnDisk": "Show Size on Disk", "ShowSizeOnDisk": "Show Size on Disk",

Loading…
Cancel
Save