1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-03-05 13:21:25 -05:00

Fixed: (UI) Show studio and release/added dates in movie index

This commit is contained in:
Bogdan
2023-05-24 21:12:48 +03:00
parent 29ba6fe556
commit a1ccfacfa2
2 changed files with 12 additions and 4 deletions

View File

@@ -41,6 +41,7 @@ function MovieIndexPoster(props: MovieIndexPosterProps) {
showTitle,
showMonitored,
showQualityProfile,
showCinemaRelease,
showReleaseDate,
showSearchAction,
} = useSelector(selectPosterOptions);
@@ -59,6 +60,8 @@ function MovieIndexPoster(props: MovieIndexPosterProps) {
youTubeTrailerId,
hasFile,
isAvailable,
studio,
added,
inCinemas,
physicalRelease,
digitalRelease,
@@ -199,7 +202,7 @@ function MovieIndexPoster(props: MovieIndexPosterProps) {
{showMonitored ? (
<div className={styles.title}>
{monitored ? translate('monitored') : translate('unmonitored')}
{monitored ? translate('Monitored') : translate('Unmonitored')}
</div>
) : null}
@@ -208,8 +211,11 @@ function MovieIndexPoster(props: MovieIndexPosterProps) {
) : null}
<MovieIndexPosterInfo
studio={studio}
qualityProfile={qualityProfile}
added={added}
showQualityProfile={showQualityProfile}
showCinemaRelease={showCinemaRelease}
showReleaseDate={showReleaseDate}
showRelativeDates={showRelativeDates}
shortDateFormat={shortDateFormat}

View File

@@ -20,6 +20,7 @@ interface MovieIndexPosterInfoProps {
sizeOnDisk?: number;
sortKey: string;
showRelativeDates: boolean;
showCinemaRelease: boolean;
showReleaseDate: boolean;
shortDateFormat: string;
timeFormat: string;
@@ -39,6 +40,7 @@ function MovieIndexPosterInfo(props: MovieIndexPosterInfoProps) {
sizeOnDisk,
sortKey,
showRelativeDates,
showCinemaRelease,
showReleaseDate,
shortDateFormat,
timeFormat,
@@ -70,7 +72,7 @@ function MovieIndexPosterInfo(props: MovieIndexPosterInfoProps) {
);
}
if (sortKey === 'inCinemas' && inCinemas && !showReleaseDate) {
if (sortKey === 'inCinemas' && inCinemas && showCinemaRelease) {
const inCinemasDate = getRelativeDate(
inCinemas,
shortDateFormat,
@@ -88,7 +90,7 @@ function MovieIndexPosterInfo(props: MovieIndexPosterInfoProps) {
);
}
if (sortKey === 'digitalRelease' && digitalRelease && !showReleaseDate) {
if (sortKey === 'digitalRelease' && digitalRelease && showReleaseDate) {
const digitalReleaseDate = getRelativeDate(
digitalRelease,
shortDateFormat,
@@ -106,7 +108,7 @@ function MovieIndexPosterInfo(props: MovieIndexPosterInfoProps) {
);
}
if (sortKey === 'physicalRelease' && physicalRelease && !showReleaseDate) {
if (sortKey === 'physicalRelease' && physicalRelease && showReleaseDate) {
const physicalReleaseDate = getRelativeDate(
physicalRelease,
shortDateFormat,