Fixed: Don't use "Ended" for people

Fixes #798
pull/6/head
Qstick 5 years ago
parent b2d87cccb2
commit 4a8d01f33e

@ -82,6 +82,8 @@ class AddNewArtistSearchResult extends Component {
} = this.state;
const linkProps = isExistingArtist ? { to: `/artist/${foreignArtistId}` } : { onPress: this.onPress };
const endedString = artistType === 'Person' ? 'Deceased' : 'Ended';
const height = calculateHeight(230, isSmallScreen);
@ -153,7 +155,7 @@ class AddNewArtistSearchResult extends Component {
kind={kinds.DANGER}
size={sizes.LARGE}
>
Ended
{endedString}
</Label> :
null
}

@ -191,6 +191,7 @@ class ArtistDetails extends Component {
overview,
links,
images,
artistType,
alternateTitles,
tags,
isSaving,
@ -230,6 +231,7 @@ class ArtistDetails extends Component {
} = this.state;
const continuing = status === 'continuing';
const endedString = artistType === 'Person' ? 'Deceased' : 'Ended';
let trackFilesCountMessage = 'No track files';
@ -504,7 +506,7 @@ class ArtistDetails extends Component {
/>
<span className={styles.qualityProfileName}>
{continuing ? 'Continuing' : 'Ended'}
{continuing ? 'Continuing' : endedString}
</span>
</Label>
@ -678,6 +680,7 @@ ArtistDetails.propTypes = {
statistics: PropTypes.object.isRequired,
qualityProfileId: PropTypes.number.isRequired,
monitored: PropTypes.bool.isRequired,
artistType: PropTypes.string.isRequired,
albumTypes: PropTypes.arrayOf(PropTypes.string),
status: PropTypes.string.isRequired,
overview: PropTypes.string.isRequired,

@ -29,6 +29,7 @@ class ArtistEditorRow extends Component {
status,
foreignArtistId,
artistName,
artistType,
monitored,
languageProfile,
metadataProfile,
@ -50,6 +51,7 @@ class ArtistEditorRow extends Component {
/>
<ArtistStatusCell
artistType={artistType}
monitored={monitored}
status={status}
/>
@ -107,6 +109,7 @@ ArtistEditorRow.propTypes = {
status: PropTypes.string.isRequired,
foreignArtistId: PropTypes.string.isRequired,
artistName: PropTypes.string.isRequired,
artistType: PropTypes.string.isRequired,
monitored: PropTypes.bool.isRequired,
languageProfile: PropTypes.object.isRequired,
metadataProfile: PropTypes.object.isRequired,

@ -139,6 +139,7 @@ class ArtistIndexRow extends Component {
<ArtistStatusCell
key={name}
className={styles[name]}
artistType={artistType}
monitored={monitored}
status={status}
component={VirtualTableRowCell}

@ -8,12 +8,15 @@ import styles from './ArtistStatusCell.css';
function ArtistStatusCell(props) {
const {
className,
artistType,
monitored,
status,
component: Component,
...otherProps
} = props;
const endedString = artistType === 'Person' ? 'Deceased' : 'Ended';
return (
<Component
className={className}
@ -28,7 +31,7 @@ function ArtistStatusCell(props) {
<Icon
className={styles.statusIcon}
name={status === 'ended' ? icons.ARTIST_ENDED : icons.ARTIST_CONTINUING}
title={status === 'ended' ? 'Ended' : 'Continuing'}
title={status === 'ended' ? endedString : 'Continuing'}
/>
</Component>
);
@ -36,6 +39,7 @@ function ArtistStatusCell(props) {
ArtistStatusCell.propTypes = {
className: PropTypes.string.isRequired,
artistType: PropTypes.string.isRequired,
monitored: PropTypes.bool.isRequired,
status: PropTypes.string.isRequired,
component: PropTypes.func

Loading…
Cancel
Save