1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-23 00:03:05 +00:00

Add Album Type to Wanted and Cutoff Tab Table

This commit is contained in:
Qstick 2017-10-31 23:43:40 -04:00
parent 1451a63c06
commit 8c31d39b3d
3 changed files with 32 additions and 0 deletions

View file

@ -38,6 +38,12 @@ export const defaultState = {
label: 'Album Title',
isVisible: true
},
{
name: 'albumType',
label: 'Album Type',
isSortable: true,
isVisible: true
},
{
name: 'releaseDate',
label: 'Release Date',
@ -86,6 +92,12 @@ export const defaultState = {
label: 'Album Title',
isVisible: true
},
{
name: 'albumType',
label: 'Album Type',
isSortable: true,
isVisible: true
},
{
name: 'releaseDate',
label: 'Release Date',

View file

@ -18,6 +18,7 @@ function CutoffUnmetRow(props) {
trackFileId,
artist,
releaseDate,
albumType,
title,
isSelected,
columns,
@ -68,6 +69,14 @@ function CutoffUnmetRow(props) {
);
}
if (name === 'albumType') {
return (
<TableRowCell key={name}>
{albumType}
</TableRowCell>
);
}
if (name === 'releaseDate') {
return (
<RelativeDateCellConnector
@ -130,6 +139,7 @@ CutoffUnmetRow.propTypes = {
trackFileId: PropTypes.number,
artist: PropTypes.object.isRequired,
releaseDate: PropTypes.string.isRequired,
albumType: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
isSelected: PropTypes.bool,
columns: PropTypes.arrayOf(PropTypes.object).isRequired,

View file

@ -18,6 +18,7 @@ function MissingRow(props) {
// trackFileId,
artist,
releaseDate,
albumType,
title,
isSelected,
columns,
@ -86,6 +87,14 @@ function MissingRow(props) {
);
}
if (name === 'albumType') {
return (
<TableRowCell key={name}>
{albumType}
</TableRowCell>
);
}
if (name === 'releaseDate') {
return (
<RelativeDateCellConnector
@ -135,6 +144,7 @@ MissingRow.propTypes = {
// trackFileId: PropTypes.number,
artist: PropTypes.object.isRequired,
releaseDate: PropTypes.string.isRequired,
albumType: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
isSelected: PropTypes.bool,
columns: PropTypes.arrayOf(PropTypes.object).isRequired,