mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-05 15:47:20 +02:00
New: No Release Dates availability message
Co-authored-by: bakerboy448 <55419169+bakerboy448@users.noreply.github.com>
This commit is contained in:
parent
d17eb4f33f
commit
e8e1841e6c
@ -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 ? (
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user