diff --git a/src/components/BuildingOverview/folderStructure.js b/src/components/BuildingOverview/folderStructure.js new file mode 100644 index 0000000000000000000000000000000000000000..8add0f48724cf684517daddc379df294490f3428 --- /dev/null +++ b/src/components/BuildingOverview/folderStructure.js @@ -0,0 +1,30 @@ +const defaultStructure = { + Utility_Bills: null, + Site_Visit_Media: null, + Reports: null, + Notes: null, + 'Building-Level_Financial_Documents': null, + 'Building-Level_Engineering_Analysis': null, + Sensors: null, + Projects: { + '"Projects"_Template': { + Financial_Analysis: null, + Engineering_Analysis: null, + Notes: null, + Reports: null, + Contracts_and_Legal_Documents: null, + Proposals_and_Price_Quotes: null, + Construction_Management_Documents: { + Permits: null, + Contractor_Agreements: null, + Contractor_Insurance_Documents: null, + Contractor_Quotes: { + 'Reference_Quotes_(We_Did_Not_Use)': null, + 'Active_Quotes_(We_Used)': null, + }, + }, + }, + }, +}; + +export default defaultStructure; diff --git a/src/components/BuildingOverview/index.js b/src/components/BuildingOverview/index.js index 45014d37808c858d7a16472fe2dbd989726c1a9a..e95df713438a207b4e486e09bc70c7bd31752a38 100644 --- a/src/components/BuildingOverview/index.js +++ b/src/components/BuildingOverview/index.js @@ -3,6 +3,7 @@ import documentsPropType from '../../containers/Documents/propTypes'; import DocumentCardViewer from '../../components/DocumentCardViewer'; import LinkBarDetail from '../../components/LinkBarDetail'; import ProjectCard from '../ProjectCard'; +import folderStructure from './folderStructure'; import { completeProjectPropTypes, completeOverviewPropTypes, @@ -22,7 +23,7 @@ export default class BuildingOverview extends Component { } componentDidMount() { - this.props.getFolderUrl(this.state.documentPath); + this.props.getFolderUrl(this.state.documentPath, folderStructure); } renderProjects = () => { @@ -42,6 +43,7 @@ export default class BuildingOverview extends Component { } render() { + const loadingFolder = this.props.documents.folderUrl === '#' || !this.props.documents.folderUrl; return (