mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-26 22:46:53 -04:00
Fix translation usage for IMDbId and TMDBId
This commit is contained in:
@@ -39,12 +39,12 @@ const columns = [
|
||||
},
|
||||
{
|
||||
name: 'imdbId',
|
||||
label: () => translate('ImdbId'),
|
||||
label: () => translate('IMDbId'),
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
name: 'tmdbId',
|
||||
label: () => translate('TmdbId'),
|
||||
label: () => translate('TMDBId'),
|
||||
isVisible: true,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -28,7 +28,11 @@ class SelectMovieRow extends Component {
|
||||
</VirtualTableRowCell>
|
||||
|
||||
<VirtualTableRowCell className={styles.imdbId}>
|
||||
<Label>{this.props.imdbId}</Label>
|
||||
{
|
||||
this.props.imdbId ?
|
||||
<Label>{this.props.imdbId}</Label> :
|
||||
null
|
||||
}
|
||||
</VirtualTableRowCell>
|
||||
|
||||
<VirtualTableRowCell className={styles.tmdbId}>
|
||||
@@ -43,7 +47,7 @@ SelectMovieRow.propTypes = {
|
||||
id: PropTypes.number.isRequired,
|
||||
title: PropTypes.string.isRequired,
|
||||
tmdbId: PropTypes.number.isRequired,
|
||||
imdbId: PropTypes.string.isRequired,
|
||||
imdbId: PropTypes.string,
|
||||
year: PropTypes.number.isRequired,
|
||||
onMovieSelect: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user