1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-07-07 04:19:25 +02:00

New: No Release Dates availability message

Co-authored-by: bakerboy448 <55419169+bakerboy448@users.noreply.github.com>
This commit is contained in:
Bogdan 2024-02-16 03:07:39 +02:00
parent d17eb4f33f
commit e8e1841e6c
2 changed files with 16 additions and 4 deletions

View File

@ -8,18 +8,29 @@ import translate from 'Utilities/String/translate';
import styles from './MovieReleaseDates.css'; import styles from './MovieReleaseDates.css';
interface MovieReleaseDatesProps { interface MovieReleaseDatesProps {
inCinemas: string; inCinemas?: string;
physicalRelease: string; digitalRelease?: string;
digitalRelease: string; physicalRelease?: string;
} }
function MovieReleaseDates(props: MovieReleaseDatesProps) { function MovieReleaseDates(props: MovieReleaseDatesProps) {
const { inCinemas, physicalRelease, digitalRelease } = props; const { inCinemas, digitalRelease, physicalRelease } = props;
const { showRelativeDates, shortDateFormat, timeFormat } = useSelector( const { showRelativeDates, shortDateFormat, timeFormat } = useSelector(
createUISettingsSelector() createUISettingsSelector()
); );
if (!inCinemas && !physicalRelease && !digitalRelease) {
return (
<div>
<div className={styles.dateIcon}>
<Icon name={icons.MISSING} />
</div>
{translate('NoMovieReleaseDatesAvailable')}
</div>
);
}
return ( return (
<div> <div>
{inCinemas ? ( {inCinemas ? (

View File

@ -1003,6 +1003,7 @@
"NoMinimumForAnyRuntime": "No minimum for any runtime", "NoMinimumForAnyRuntime": "No minimum for any runtime",
"NoMoveFilesSelf": " No, I'll Move the Files Myself", "NoMoveFilesSelf": " No, I'll Move the Files Myself",
"NoMovieFilesToManage": "No movie files to manage.", "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.", "NoMoviesExist": "No movies found, to get started you'll want to add a new movie or import some existing ones.",
"NoResultsFound": "No results found", "NoResultsFound": "No results found",
"NoTagsHaveBeenAddedYet": "No tags have been added yet", "NoTagsHaveBeenAddedYet": "No tags have been added yet",