Skip to content
7 changes: 5 additions & 2 deletions src/components/Layout/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ class Layout extends Component {
}
}

const mapStateToProps = ({ loadUser }) => {
const mapStateToProps = ({ loadUser, projectState, projectSearch }) => {
const projectDetailApiCheck = !projectState.isLoading && !!projectState.error
const projectListingApiCheck = !projectSearch.isLoading && !!projectSearch.error
return {
user : loadUser.user,
isLoadingUser: loadUser.isLoading
isLoadingUser: loadUser.isLoading,
maintenanceMode: projectDetailApiCheck || projectListingApiCheck
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/components/Layout/Layout.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import Footer from '../Footer/Footer'
import { MAINTENANCE_MODE } from '../../config/constants'
// import { MAINTENANCE_MODE } from '../../config/constants'
import Alert from 'react-s-alert'
import cn from 'classnames'
import Maintenance from '../Maintenance/Maintenance'
Expand All @@ -12,11 +12,11 @@ import '../../styles/vendors/s-alert-default.css'
import 'react-s-alert/dist/s-alert-css-effects/stackslide.css'

const Layout = (props) => {
const { isLoadingUser } = props
const { isLoadingUser, maintenanceMode } = props

if (isLoadingUser) {
return (<div />)
} else if (MAINTENANCE_MODE) {
} else if (maintenanceMode) {
return <Maintenance />
} else {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/config/projectQuestions/enterprise_mobile.v1.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ const sections = [
{ value: 'confidential', label: 'Confidential Information, Sensitive Financial Data or Personally Identifiable Information (PII) - Will the user be working directly with financial or other protected information such has health records?'},
{ value: 'mdm', label: 'Mobile Device Management (MDM) - Do you employ an MDM solution? If yes, what service do you use?'}
],
description: 'Please select each required security requirement above.',
description: 'Please select each required security requirement above.'
},
{
icon: 'question',
Expand Down