mirror of https://github.com/Radarr/Radarr
Add No Release Dates available message
This commit is contained in:
parent
d64ee6681f
commit
9d89fcd5cd
|
@ -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 ? (
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue