Merged PR 2377: added enlarge map view on dnsapplication list

added enlarge map view on dnsapplication list

Related work items: #23774
This commit is contained in:
Robert Bond
2026-06-09 10:04:32 +00:00
parent c39e4bcc9a
commit 7e47340326
6 changed files with 72 additions and 43 deletions
+5 -2
View File
@@ -23,7 +23,7 @@ import { wrapper } from "../store/store";
import ServiceBanner from "../components/servicebanner";
const Home = (props) => {
const { footerLinks, pages, showMap, showLoginCheck } = props;
const { footerLinks, pages, showMap, showLoginCheck, mapTarget } = props;
let { t, lang } = useTranslation();
const router = useRouter();
@@ -109,6 +109,7 @@ const Home = (props) => {
searchString="DNS"
searchResultsObj={props.searchResultsObj}
showLoginCheck={showLoginCheck}
mapTarget={mapTarget}
/>
</div>
<Footer footerLinks={footerLinks} ticketnumber={props} />
@@ -140,6 +141,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
const showLoginCheck = process.env.SHOWLOGIN || false;
const showMapCheck = process.env.SHOWMAPS || false;
const mapTarget = process.env.MAP_TARGET || "pedw-dev";
// if (_.has(searchResultsObj, "status") == true) {
// return {
@@ -166,7 +168,8 @@ export const getServerSideProps = wrapper.getServerSideProps(
return {
props: {
showMap: showMapCheck,
showLoginCheck: showLoginCheck
showLoginCheck: showLoginCheck,
mapTarget: mapTarget
}
};
}
+4 -2
View File
@@ -40,7 +40,7 @@ import { getSession } from "next-auth/react";
import ServiceBanner from "../../components/myportal/servicebanner";
const Home = (props) => {
const { footerLinks, pages, watchedCases, showMap } = props;
const { footerLinks, pages, watchedCases, showMap, mapTarget } = props;
let { t, lang } = useTranslation();
const router = useRouter();
@@ -127,6 +127,7 @@ const Home = (props) => {
searchResultsObj={props.searchResultsObj}
myportal={true}
watchedCases={watchedCases}
mapTarget={mapTarget}
/>
</div>
<Footer footerLinks={footerLinks} ticketnumber={props} />
@@ -174,6 +175,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
// : searchResultsObj;
const showMapCheck = process.env.SHOWMAPS || false;
const mapTarget = process.env.MAP_TARGET || "pedw-dev";
const watchedCasesDetails = await getDetails(
watchedCases,
@@ -190,7 +192,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
store.dispatch(setAccountDetails(accountDetails));
return {
props: { showMap: showMapCheck }
props: { showMap: showMapCheck, mapTarget: mapTarget }
};
}
}