mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-26 22:56:23 -04:00
New: Store and use original Series language
This commit is contained in:
@@ -46,6 +46,15 @@ function SeriesIndexSortMenu(props) {
|
||||
Network
|
||||
</SortMenuItem>
|
||||
|
||||
<SortMenuItem
|
||||
name="originalLanguage"
|
||||
sortKey={sortKey}
|
||||
sortDirection={sortDirection}
|
||||
onPress={onSortSelect}
|
||||
>
|
||||
Original Language
|
||||
</SortMenuItem>
|
||||
|
||||
<SortMenuItem
|
||||
name="qualityProfileId"
|
||||
sortKey={sortKey}
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
flex: 2 0 90px;
|
||||
}
|
||||
|
||||
.originalLanguage,
|
||||
.qualityProfileId {
|
||||
composes: headerCell from '~Components/Table/VirtualTableHeaderCell.css';
|
||||
|
||||
|
||||
@@ -66,6 +66,7 @@
|
||||
flex: 2 0 90px;
|
||||
}
|
||||
|
||||
.originalLanguage,
|
||||
.qualityProfileId {
|
||||
composes: cell;
|
||||
|
||||
|
||||
@@ -85,6 +85,7 @@ class SeriesIndexRow extends Component {
|
||||
titleSlug,
|
||||
seriesType,
|
||||
network,
|
||||
originalLanguage,
|
||||
qualityProfile,
|
||||
nextAiring,
|
||||
previousAiring,
|
||||
@@ -212,6 +213,17 @@ class SeriesIndexRow extends Component {
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'originalLanguage') {
|
||||
return (
|
||||
<VirtualTableRowCell
|
||||
key={name}
|
||||
className={styles[name]}
|
||||
>
|
||||
{originalLanguage.name}
|
||||
</VirtualTableRowCell>
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'qualityProfileId') {
|
||||
return (
|
||||
<VirtualTableRowCell
|
||||
@@ -511,6 +523,7 @@ SeriesIndexRow.propTypes = {
|
||||
title: PropTypes.string.isRequired,
|
||||
titleSlug: PropTypes.string.isRequired,
|
||||
seriesType: PropTypes.string.isRequired,
|
||||
originalLanguage: PropTypes.object.isRequired,
|
||||
network: PropTypes.string,
|
||||
qualityProfile: PropTypes.object.isRequired,
|
||||
nextAiring: PropTypes.string,
|
||||
|
||||
Reference in New Issue
Block a user