mirror of
https://github.com/Radarr/Radarr
synced 2025-03-14 16:09:37 +00: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
2 changed files with 16 additions and 4 deletions
|
@ -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 ? (
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue