Skip to content

Commit

Permalink
New: No Release Dates availability message
Browse files Browse the repository at this point in the history
Co-authored-by: bakerboy448 <55419169+bakerboy448@users.noreply.github.com>
  • Loading branch information
mynameisbogdan and bakerboy448 committed May 12, 2024
1 parent d17eb4f commit 955137d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
19 changes: 15 additions & 4 deletions frontend/src/Movie/Details/MovieReleaseDates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,29 @@ import translate from 'Utilities/String/translate';
import styles from './MovieReleaseDates.css';

interface MovieReleaseDatesProps {
inCinemas: string;
physicalRelease: string;
digitalRelease: string;
inCinemas?: string;
digitalRelease?: string;
physicalRelease?: string;
}

function MovieReleaseDates(props: MovieReleaseDatesProps) {
const { inCinemas, physicalRelease, digitalRelease } = props;
const { inCinemas, digitalRelease, physicalRelease } = props;

const { showRelativeDates, shortDateFormat, timeFormat } = useSelector(
createUISettingsSelector()
);

if (!inCinemas && !physicalRelease && !digitalRelease) {
return (
<div>
<div className={styles.dateIcon}>
<Icon name={icons.MISSING} />
</div>
{translate('NoMovieReleaseDatesAvailable')}
</div>
);
}

return (
<div>
{inCinemas ? (
Expand Down
1 change: 1 addition & 0 deletions src/NzbDrone.Core/Localization/Core/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,7 @@
"NoMinimumForAnyRuntime": "No minimum for any runtime",
"NoMoveFilesSelf": " No, I'll Move the Files Myself",
"NoMovieFilesToManage": "No movie files to manage.",
"NoMovieReleaseDatesAvailable": "No release dates available on TMDb for this movie.",
"NoMoviesExist": "No movies found, to get started you'll want to add a new movie or import some existing ones.",
"NoResultsFound": "No results found",
"NoTagsHaveBeenAddedYet": "No tags have been added yet",
Expand Down

0 comments on commit 955137d

Please sign in to comment.