summaryrefslogtreecommitdiff
path: root/frontend/views/index/containers/graph.index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-06-02 16:39:00 +0200
committerJules Laplace <julescarbon@gmail.com>2020-06-02 16:39:00 +0200
commit5b480258322682fdc4fa987770df9e719315f167 (patch)
tree1cfeaf350dd8f7a394a4d0bbf86d41ba787fbd69 /frontend/views/index/containers/graph.index.js
parent3b00ca8991f7092aa1cb3d584df12a0368f4fa4b (diff)
editing graph meta works
Diffstat (limited to 'frontend/views/index/containers/graph.index.js')
-rw-r--r--frontend/views/index/containers/graph.index.js19
1 files changed, 16 insertions, 3 deletions
diff --git a/frontend/views/index/containers/graph.index.js b/frontend/views/index/containers/graph.index.js
index 7ac31da..c02ad79 100644
--- a/frontend/views/index/containers/graph.index.js
+++ b/frontend/views/index/containers/graph.index.js
@@ -13,17 +13,30 @@ class GraphIndex extends Component {
}
render() {
const { index } = this.props
- if (index.loading) {
+ console.log(this.props)
+ if (!index.order) {
return (
<div className='graphIndex'>
<Loader />
</div>
)
}
+ // console.log(state)
return (
<div className='graphIndex'>
- <b>welcome, swimmer</b>
- <Link to='/index/new'>+ new project</Link>
+ <div>
+ <b>welcome, swimmer</b>
+ <Link to='/index/new'>+ new project</Link>
+ </div>
+ {index.order.map(id => {
+ const graph = index.lookup[id]
+ return (
+ <div key={id}>
+ <Link to={'/' + graph.path}>{graph.title}</Link>
+ <Link to={'/index/' + id + '/edit'}>{'edit project'}</Link>
+ </div>
+ )
+ })}
</div>
)
}