New: Add release date sort option to book index view

Fixes #1403
pull/1423/head
ta264 3 years ago
parent 5827644300
commit 0db6cf272f

@ -149,21 +149,24 @@ class BookDetailsHeader extends Component {
</div> </div>
<div className={styles.detailsLabels}> <div className={styles.detailsLabels}>
<Label {
className={styles.detailsLabel} releaseDate &&
size={sizes.LARGE} <Label
> className={styles.detailsLabel}
<Icon size={sizes.LARGE}
name={icons.CALENDAR} >
size={17} <Icon
/> name={icons.CALENDAR}
size={17}
/>
<span className={styles.sizeOnDisk}> <span className={styles.sizeOnDisk}>
{ {
moment(releaseDate).format(shortDateFormat) moment(releaseDate).format(shortDateFormat)
} }
</span> </span>
</Label> </Label>
}
<Label <Label
className={styles.detailsLabel} className={styles.detailsLabel}

@ -46,6 +46,15 @@ function BookIndexSortMenu(props) {
Author, Title Author, Title
</SortMenuItem> </SortMenuItem>
<SortMenuItem
name="releaseDate"
sortKey={sortKey}
sortDirection={sortDirection}
onPress={onSortSelect}
>
Release Date
</SortMenuItem>
<SortMenuItem <SortMenuItem
name="qualityProfileId" name="qualityProfileId"
sortKey={sortKey} sortKey={sortKey}

Loading…
Cancel
Save