diff options
Diffstat (limited to 'frontend/site')
| -rw-r--r-- | frontend/site/site/site.actions.js | 20 | ||||
| -rw-r--r-- | frontend/site/viewer/viewer.container.js | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/frontend/site/site/site.actions.js b/frontend/site/site/site.actions.js index 2362e5f..5724df8 100644 --- a/frontend/site/site/site.actions.js +++ b/frontend/site/site/site.actions.js @@ -11,14 +11,14 @@ export const setSiteTitle = title => dispatch => { export const loadSite = (graph_name, path_name) => dispatch => ( api(dispatch, types.site, 'site', '/' + graph_name + '/index.json') - .then(res => { - const { graph } = res.data - // console.log(graph) - // console.log(graph.home_page) - const first_path = ["", graph_name, path_name].join("/") - if (!path_name || !(first_path in graph.pages)) { - // console.log(graph.home_page) - window.location.href = graph.home_page - } - }) + // .then(res => { + // const { graph } = res.data + // // console.log(graph) + // // console.log(graph.home_page) + // const first_path = ["", graph_name, path_name].join("/") + // if (!path_name || !(first_path in graph.pages)) { + // // console.log(graph.home_page) + // window.location.href = graph.home_page + // } + // }) ) diff --git a/frontend/site/viewer/viewer.container.js b/frontend/site/viewer/viewer.container.js index 68088d2..da81551 100644 --- a/frontend/site/viewer/viewer.container.js +++ b/frontend/site/viewer/viewer.container.js @@ -4,7 +4,7 @@ import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import actions from '../actions' -import { Loader } from '../../common' +import { Loader } from '../../common/loader.component' import TileHandle from '../../views/page/components/tile.handle' import '../../views/page/page.css' |
