summaryrefslogtreecommitdiff
path: root/frontend/site
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-11 16:02:01 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-11 16:02:01 +0200
commitcf4098b20dadcd378ef2730f32f70e327ab262b4 (patch)
tree7683817932967b083fd3447649f127d461d802fb /frontend/site
parent52531fbc8d3531a7941ad9c6c79a1e353d35f2fa (diff)
making sure cursors and css are good in the main site
Diffstat (limited to 'frontend/site')
-rw-r--r--frontend/site/site/site.actions.js20
-rw-r--r--frontend/site/viewer/viewer.container.js2
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'