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:
@@ -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
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 }
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user