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