mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
tidied up unnecesarry lines and added translation line
This commit is contained in:
parent
b6e46ad8fd
commit
11b4967629
@ -297,7 +297,6 @@ class MovieIndexPoster extends Component {
|
|||||||
inCinemas={inCinemas}
|
inCinemas={inCinemas}
|
||||||
physicalRelease={physicalRelease}
|
physicalRelease={physicalRelease}
|
||||||
digitalRelease={digitalRelease}
|
digitalRelease={digitalRelease}
|
||||||
releaseDate={releaseDate}
|
|
||||||
{...otherProps}
|
{...otherProps}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user