tidied up unnecesarry lines and added translation line

This commit is contained in:
Robin Dadswell 2021-01-11 14:43:15 +00:00 committed by Qstick
parent b6e46ad8fd
commit 11b4967629
3 changed files with 1 additions and 21 deletions

View File

@ -297,7 +297,6 @@ class MovieIndexPoster extends Component {
inCinemas={inCinemas} inCinemas={inCinemas}
physicalRelease={physicalRelease} physicalRelease={physicalRelease}
digitalRelease={digitalRelease} digitalRelease={digitalRelease}
releaseDate={releaseDate}
{...otherProps} {...otherProps}
/> />

View File

@ -15,7 +15,6 @@ function MovieIndexPosterInfo(props) {
inCinemas, inCinemas,
digitalRelease, digitalRelease,
physicalRelease, physicalRelease,
releaseDate,
certification, certification,
path, path,
sizeOnDisk, sizeOnDisk,
@ -59,24 +58,6 @@ function MovieIndexPosterInfo(props) {
); );
} }
if (sortKey === 'releaseDate' && !showReleaseDate) {
const relativeReleaseDate = getRelativeDate(
releaseDate,
shortDateFormat,
showRelativeDates,
{
timeFormat,
timeForToday: false
}
);
return (
<div className={styles.info}>
{translate('releaseDate')}: {relativeReleaseDate}
</div>
);
}
if (sortKey === 'inCinemas' && inCinemas && !showReleaseDate) { if (sortKey === 'inCinemas' && inCinemas && !showReleaseDate) {
const inCinemasDate = getRelativeDate( const inCinemasDate = getRelativeDate(
inCinemas, inCinemas,
@ -167,7 +148,6 @@ MovieIndexPosterInfo.propTypes = {
certification: PropTypes.string, certification: PropTypes.string,
digitalRelease: PropTypes.string, digitalRelease: PropTypes.string,
physicalRelease: PropTypes.string, physicalRelease: PropTypes.string,
releaseDate: PropTypes.string.isRequired,
path: PropTypes.string.isRequired, path: PropTypes.string.isRequired,
sizeOnDisk: PropTypes.number, sizeOnDisk: PropTypes.number,
sortKey: PropTypes.string.isRequired, sortKey: PropTypes.string.isRequired,

View File

@ -736,6 +736,7 @@
"RelativePath": "Relative Path", "RelativePath": "Relative Path",
"ReleaseBranchCheckOfficialBranchMessage": "Branch {0} is not a valid Radarr release branch, you will not receive updates", "ReleaseBranchCheckOfficialBranchMessage": "Branch {0} is not a valid Radarr release branch, you will not receive updates",
"Released": "Released", "Released": "Released",
"ReleaseDate": "Release Date",
"ReleaseDates": "Release Dates", "ReleaseDates": "Release Dates",
"ReleasedMsg": "Movie is released", "ReleasedMsg": "Movie is released",
"ReleaseGroup": "Release Group", "ReleaseGroup": "Release Group",