summaryrefslogtreecommitdiff
path: root/frontend/views/graph/components/graph.header.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-06-03 21:03:36 +0200
committerJules Laplace <julescarbon@gmail.com>2020-06-03 21:03:36 +0200
commitebb806cec4af5ccdad795513335c22769cbd7aff (patch)
treed7fb55b72d3bee7eb13d3e89680947ebd5584787 /frontend/views/graph/components/graph.header.js
parent4eea589bd4cdd91294f14943bd90cd3f51f6ec2f (diff)
handle changing type more robustly
Diffstat (limited to 'frontend/views/graph/components/graph.header.js')
-rw-r--r--frontend/views/graph/components/graph.header.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/views/graph/components/graph.header.js b/frontend/views/graph/components/graph.header.js
index 6a927ec..46ad962 100644
--- a/frontend/views/graph/components/graph.header.js
+++ b/frontend/views/graph/components/graph.header.js
@@ -12,7 +12,7 @@ function GraphHeader(props) {
<Link to="/" className="logo"><b>{props.site.siteTitle}</b></Link>
</div>
<div>
- <button onClick={() => props.graphActions.showAddPageForm()}>+ Add page</button>
+ <button onClick={() => props.graphActions.toggleAddPageForm()}>+ Add page</button>
</div>
</header>
)