From ec067e62a5676195e28a5073f4eeefc05fe60169 Mon Sep 17 00:00:00 2001 From: robbond Date: Wed, 4 Feb 2026 11:21:05 +0000 Subject: [PATCH] 21254 media tab --- components/case/summary.js | 45 +++++++++++++++++++++++++++++++++++--- locales/cy/case.json | 5 ++++- locales/en/case.json | 5 ++++- 3 files changed, 50 insertions(+), 5 deletions(-) diff --git a/components/case/summary.js b/components/case/summary.js index b27b685a..83605ce4 100644 --- a/components/case/summary.js +++ b/components/case/summary.js @@ -8,6 +8,7 @@ import { connect } from "react-redux"; import transLookup from "../../data/lookuptranslations.json"; import Documents from "./documents"; import EventsDetails from "./events"; +import MediaDetails from "./media"; import { createWatchedCases, @@ -81,8 +82,10 @@ const CaseSummary = (props) => { ticketnumber, } = props; - const showLoginCheck = - currentType == "directResultsObj" ? "true" : currentView.showLogin; + // const showLoginCheck = + // currentType == "directResultsObj" ? "true" : currentView.showLogin; + + let showLoginCheck = props.showLoginCheck; const { data: session, status } = useSession(); const [isModalOpen, setIsModalOpen] = useState(false); @@ -416,7 +419,7 @@ const CaseSummary = (props) => { > setWhichTab("case-eia")} > {" "} @@ -444,6 +447,26 @@ const CaseSummary = (props) => { )} + {isObjectNotEmpty(props, "mediaObj") && ( +
  • + + setWhichTab("case-media") + } + > + {" "} + {t("case:summary-tab-media-label")}{" "} + +
  • + )}
  • { )} + {isObjectNotEmpty(props, "mediaObj") && ( +
    + +
    + )} +