Add Album Type to Wanted and Cutoff Tab Table

pull/6/head
Qstick 7 years ago
parent 1451a63c06
commit 8c31d39b3d

@ -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',

@ -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,

@ -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,

Loading…
Cancel
Save