@ -31,15 +31,15 @@ class ArtistIndexRow extends Component {
} ;
}
onEdit Series Press = ( ) => {
onEdit Artist Press = ( ) => {
this . setState ( { isEditArtistModalOpen : true } ) ;
}
onEdit Series ModalClose = ( ) => {
onEdit Artist ModalClose = ( ) => {
this . setState ( { isEditArtistModalOpen : false } ) ;
}
onDelete Series Press = ( ) => {
onDelete Artist Press = ( ) => {
this . setState ( {
isEditArtistModalOpen : false ,
isDeleteArtistModalOpen : true
@ -66,7 +66,6 @@ class ArtistIndexRow extends Component {
status ,
artistName ,
nameSlug ,
network ,
qualityProfile ,
languageProfile ,
nextAiring ,
@ -76,13 +75,13 @@ class ArtistIndexRow extends Component {
trackCount ,
trackFileCount ,
totalTrackCount ,
latest Season ,
latest Album ,
path ,
sizeOnDisk ,
tags ,
// useSceneNumbering,
columns ,
isRefreshing Series ,
isRefreshing Artist ,
onRefreshArtistPress
} = this . props ;
@ -130,17 +129,6 @@ class ArtistIndexRow extends Component {
) ;
}
if ( name === 'network' ) {
return (
< VirtualTableRowCell
key = { name }
className = { styles [ name ] }
>
{ network }
< / V i r t u a l T a b l e R o w C e l l >
) ;
}
if ( name === 'qualityProfileId' ) {
return (
< VirtualTableRowCell
@ -227,9 +215,9 @@ class ArtistIndexRow extends Component {
) ;
}
if ( name === 'latest Season ') {
const seasonStatistics = latestSeason . statistics ;
const progress = seasonStatistics. episodeCount ? seasonStatistics . episodeFileCount / seasonStatistics . episode Count * 100 : 100 ;
if ( name === 'latest Album ') {
const albumStatistics = latestAlbum . statistics ;
const progress = albumStatistics. trackCount ? albumStatistics . trackFileCount / albumStatistics . track Count * 100 : 100 ;
return (
< VirtualTableRowCell
@ -240,8 +228,8 @@ class ArtistIndexRow extends Component {
progress = { progress }
kind = { getProgressBarKind ( status , monitored , progress ) }
showText = { true }
text = { ` ${ seasonStatistics. episodeFileCount } / ${ seasonStatistics . episode Count} ` }
title = { ` ${ seasonStatistics. episodeFileCount } / ${ seasonStatistics . episodeCount } (Total: ${ seasonStatistics . totalEpisode Count} ) ` }
text = { ` ${ albumStatistics. trackFileCount } / ${ albumStatistics . track Count} ` }
title = { ` ${ albumStatistics. trackFileCount } / ${ albumStatistics . trackCount } (Total: ${ albumStatistics . totalTrack Count} ) ` }
width = { 125 }
/ >
< / V i r t u a l T a b l e R o w C e l l >
@ -320,14 +308,14 @@ class ArtistIndexRow extends Component {
< SpinnerIconButton
name = { icons . REFRESH }
title = "Refresh Artist"
isSpinning = { isRefreshing Series }
isSpinning = { isRefreshing Artist }
onPress = { onRefreshArtistPress }
/ >
< IconButton
name = { icons . EDIT }
title = "Edit Artist"
onPress = { this . onEdit Series Press}
onPress = { this . onEdit Artist Press}
/ >
< / V i r t u a l T a b l e R o w C e l l >
) ;
@ -340,8 +328,8 @@ class ArtistIndexRow extends Component {
< EditArtistModalConnector
isOpen = { isEditArtistModalOpen }
artistId = { id }
onModalClose = { this . onEdit Series ModalClose}
onDelete SeriesPress= { this . onDeleteSeries Press}
onModalClose = { this . onEdit Artist ModalClose}
onDelete ArtistPress= { this . onDeleteArtist Press}
/ >
< DeleteArtistModal
@ -361,7 +349,6 @@ ArtistIndexRow.propTypes = {
status : PropTypes . string . isRequired ,
artistName : PropTypes . string . isRequired ,
nameSlug : PropTypes . string . isRequired ,
network : PropTypes . string ,
qualityProfile : PropTypes . object . isRequired ,
languageProfile : PropTypes . object . isRequired ,
nextAiring : PropTypes . string ,
@ -371,13 +358,13 @@ ArtistIndexRow.propTypes = {
trackCount : PropTypes . number ,
trackFileCount : PropTypes . number ,
totalTrackCount : PropTypes . number ,
latest Season : PropTypes . object ,
latest Album : PropTypes . object ,
path : PropTypes . string . isRequired ,
sizeOnDisk : PropTypes . number ,
tags : PropTypes . arrayOf ( PropTypes . number ) . isRequired ,
// useSceneNumbering: PropTypes.bool.isRequired,
columns : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
isRefreshing Series : PropTypes . bool . isRequired ,
isRefreshing Artist : PropTypes . bool . isRequired ,
onRefreshArtistPress : PropTypes . func . isRequired
} ;