diff --git a/app/src/frontend/app.js b/app/src/frontend/app.js index 2c23248b..5566becf 100644 --- a/app/src/frontend/app.js +++ b/app/src/frontend/app.js @@ -16,6 +16,7 @@ import Login from './login'; import MyAccountPage from './my-account'; import SignUp from './signup'; import Welcome from './welcome'; +import BuildingEditAny from './building-edit-any'; @@ -65,6 +66,9 @@ class App extends React.Component { + + + ( - ( + ( ( + +

Select a building to edit by clicking on the map…

+
+); + +export default BuildingEditAny; diff --git a/app/src/frontend/building-edit.js b/app/src/frontend/building-edit.js index b0e2bc89..63588b72 100644 --- a/app/src/frontend/building-edit.js +++ b/app/src/frontend/building-edit.js @@ -30,7 +30,7 @@ const BuildingEdit = (props) => { queryString.parse(props.location.search): {}; return ( - { CONFIG.map((conf_props) => { diff --git a/app/src/frontend/building-view.js b/app/src/frontend/building-view.js index 672fb401..5e9a1134 100644 --- a/app/src/frontend/building-view.js +++ b/app/src/frontend/building-view.js @@ -23,7 +23,7 @@ const BuildingView = (props) => { } const search = (props.location && props.location.search)? queryString.parse(props.location.search): {}; return ( - + { CONFIG.map(section_props => ( (
  • View Maps
  • +
  • + Edit Maps +
  • Building Categories
  • diff --git a/app/src/frontend/legend.js b/app/src/frontend/legend.js index 23264ac4..ab19335c 100644 --- a/app/src/frontend/legend.js +++ b/app/src/frontend/legend.js @@ -70,7 +70,7 @@ const Legend = (props) => { } return ( - +

    Click on the map to see more information about a building…

    { CONFIG.map((data_group) => ( diff --git a/app/src/frontend/map.js b/app/src/frontend/map.js index 17fc19c7..a874d515 100644 --- a/app/src/frontend/map.js +++ b/app/src/frontend/map.js @@ -125,7 +125,7 @@ function get_cat(is_building, location, url) { cat = search.cat; } else { matches = /\/map\/([^.]+).html/.exec(url); - cat = matches && matches[1]; + cat = (matches && matches.length < 1)? matches[1] : ""; } return cat; }