1
0
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:
Bogdan
2023-08-22 20:45:06 +03:00
parent 99441dfa67
commit 07b69e665d
4 changed files with 11 additions and 6 deletions
@@ -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
};