Support for Artist Disambiguation and Type

This commit is contained in:
Qstick
2017-09-28 23:03:13 -04:00
parent 6e4638f7b1
commit ed3b47d76a
19 changed files with 95 additions and 92 deletions
@@ -38,6 +38,7 @@
flex: 0 0 150px;
}
.artistType,
.trackCount {
composes: headerCell from 'Components/Table/VirtualTableHeaderCell.css';
@@ -41,6 +41,7 @@
flex-direction: column;
}
.artistType,
.trackCount {
composes: cell from 'Components/Table/Cells/VirtualTableRowCell.css';
@@ -66,6 +66,7 @@ class ArtistIndexRow extends Component {
status,
artistName,
nameSlug,
artistType,
qualityProfile,
languageProfile,
nextAiring,
@@ -129,6 +130,17 @@ class ArtistIndexRow extends Component {
);
}
if (name === 'artistType') {
return (
<VirtualTableRowCell
key={name}
className={styles[name]}
>
{artistType}
</VirtualTableRowCell>
);
}
if (name === 'qualityProfileId') {
return (
<VirtualTableRowCell
@@ -282,23 +294,6 @@ class ArtistIndexRow extends Component {
);
}
// if (name === 'useSceneNumbering') {
// return (
// <VirtualTableRowCell
// key={name}
// className={styles[name]}
// >
// <CheckInput
// className={styles.checkInput}
// name="useSceneNumbering"
// value={useSceneNumbering}
// isDisabled={true}
// onChange={this.onUseSceneNumberingChange}
// />
// </VirtualTableRowCell>
// );
// }
if (name === 'actions') {
return (
<VirtualTableRowCell
@@ -349,6 +344,7 @@ ArtistIndexRow.propTypes = {
status: PropTypes.string.isRequired,
artistName: PropTypes.string.isRequired,
nameSlug: PropTypes.string.isRequired,
artistType: PropTypes.string,
qualityProfile: PropTypes.object.isRequired,
languageProfile: PropTypes.object.isRequired,
nextAiring: PropTypes.string,