mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Add Album Type to Wanted and Cutoff Tab Table
This commit is contained in:
parent
1451a63c06
commit
8c31d39b3d
3 changed files with 32 additions and 0 deletions
|
@ -38,6 +38,12 @@ export const defaultState = {
|
||||||
label: 'Album Title',
|
label: 'Album Title',
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'albumType',
|
||||||
|
label: 'Album Type',
|
||||||
|
isSortable: true,
|
||||||
|
isVisible: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'releaseDate',
|
name: 'releaseDate',
|
||||||
label: 'Release Date',
|
label: 'Release Date',
|
||||||
|
@ -86,6 +92,12 @@ export const defaultState = {
|
||||||
label: 'Album Title',
|
label: 'Album Title',
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'albumType',
|
||||||
|
label: 'Album Type',
|
||||||
|
isSortable: true,
|
||||||
|
isVisible: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'releaseDate',
|
name: 'releaseDate',
|
||||||
label: 'Release Date',
|
label: 'Release Date',
|
||||||
|
|
|
@ -18,6 +18,7 @@ function CutoffUnmetRow(props) {
|
||||||
trackFileId,
|
trackFileId,
|
||||||
artist,
|
artist,
|
||||||
releaseDate,
|
releaseDate,
|
||||||
|
albumType,
|
||||||
title,
|
title,
|
||||||
isSelected,
|
isSelected,
|
||||||
columns,
|
columns,
|
||||||
|
@ -68,6 +69,14 @@ function CutoffUnmetRow(props) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (name === 'albumType') {
|
||||||
|
return (
|
||||||
|
<TableRowCell key={name}>
|
||||||
|
{albumType}
|
||||||
|
</TableRowCell>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (name === 'releaseDate') {
|
if (name === 'releaseDate') {
|
||||||
return (
|
return (
|
||||||
<RelativeDateCellConnector
|
<RelativeDateCellConnector
|
||||||
|
@ -130,6 +139,7 @@ CutoffUnmetRow.propTypes = {
|
||||||
trackFileId: PropTypes.number,
|
trackFileId: PropTypes.number,
|
||||||
artist: PropTypes.object.isRequired,
|
artist: PropTypes.object.isRequired,
|
||||||
releaseDate: PropTypes.string.isRequired,
|
releaseDate: PropTypes.string.isRequired,
|
||||||
|
albumType: PropTypes.string.isRequired,
|
||||||
title: PropTypes.string.isRequired,
|
title: PropTypes.string.isRequired,
|
||||||
isSelected: PropTypes.bool,
|
isSelected: PropTypes.bool,
|
||||||
columns: PropTypes.arrayOf(PropTypes.object).isRequired,
|
columns: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||||
|
|
|
@ -18,6 +18,7 @@ function MissingRow(props) {
|
||||||
// trackFileId,
|
// trackFileId,
|
||||||
artist,
|
artist,
|
||||||
releaseDate,
|
releaseDate,
|
||||||
|
albumType,
|
||||||
title,
|
title,
|
||||||
isSelected,
|
isSelected,
|
||||||
columns,
|
columns,
|
||||||
|
@ -86,6 +87,14 @@ function MissingRow(props) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (name === 'albumType') {
|
||||||
|
return (
|
||||||
|
<TableRowCell key={name}>
|
||||||
|
{albumType}
|
||||||
|
</TableRowCell>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (name === 'releaseDate') {
|
if (name === 'releaseDate') {
|
||||||
return (
|
return (
|
||||||
<RelativeDateCellConnector
|
<RelativeDateCellConnector
|
||||||
|
@ -135,6 +144,7 @@ MissingRow.propTypes = {
|
||||||
// trackFileId: PropTypes.number,
|
// trackFileId: PropTypes.number,
|
||||||
artist: PropTypes.object.isRequired,
|
artist: PropTypes.object.isRequired,
|
||||||
releaseDate: PropTypes.string.isRequired,
|
releaseDate: PropTypes.string.isRequired,
|
||||||
|
albumType: PropTypes.string.isRequired,
|
||||||
title: PropTypes.string.isRequired,
|
title: PropTypes.string.isRequired,
|
||||||
isSelected: PropTypes.bool,
|
isSelected: PropTypes.bool,
|
||||||
columns: PropTypes.arrayOf(PropTypes.object).isRequired,
|
columns: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue