Skip to content

Commit

Permalink
Add No Release Dates available message
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Feb 16, 2024
1 parent d64ee66 commit 9d89fcd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions frontend/src/Movie/Details/MovieReleaseDates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,28 @@ import styles from './MovieReleaseDates.css';

interface MovieReleaseDatesProps {
inCinemas: string;
physicalRelease: 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('NoReleaseDatesAvailableAtTheMoment')}
</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 @@ -978,6 +978,7 @@
"NoMoveFilesSelf": " No, I'll Move the Files Myself",
"NoMovieFilesToManage": "No movie files to manage.",
"NoMoviesExist": "No movies found, to get started you'll want to add a new movie or import some existing ones.",
"NoReleaseDatesAvailableAtTheMoment": "No release dates available at the moment.",
"NoResultsFound": "No results found",
"NoTagsHaveBeenAddedYet": "No tags have been added yet",
"NoUpdatesAreAvailable": "No updates are available",
Expand Down

0 comments on commit 9d89fcd

Please sign in to comment.