aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/Main.tsx
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2019-03-10 17:24:11 -0400
committerFawn <fangrui_tong@brown.edu>2019-03-10 17:24:11 -0400
commit06fb2bef46222c65d594b600bfeb72fb6a7f8212 (patch)
tree384e0fdb7b99d543f0cfc929075ad0a745d0a766 /src/client/views/Main.tsx
parent703b34e973d7c299c591c165e221f46e75a15c42 (diff)
inking ui improvements
Diffstat (limited to 'src/client/views/Main.tsx')
-rw-r--r--src/client/views/Main.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx
index e4ef90d97..d0bfa1f21 100644
--- a/src/client/views/Main.tsx
+++ b/src/client/views/Main.tsx
@@ -124,8 +124,7 @@ Documents.initProtos(mainDocId, (res?: Document) => {
< div id="toolbar" >
<button className="toolbar-button round-button" title="Undo" onClick={() => UndoManager.Undo()}><FontAwesomeIcon icon="undo-alt" size="sm" /></button>
<button className="toolbar-button round-button" title="Redo" onClick={() => UndoManager.Redo()}><FontAwesomeIcon icon="redo-alt" size="sm" /></button>
- {/* @TODO do the ink thing */}
- < button className="toolbar-button round-button" title="Ink" > <FontAwesomeIcon icon="pen-nib" size="sm" /></button >
+ <button className="toolbar-button round-button" title="Ink" onClick={() => InkingControl.Instance.toggleDisplay()}><FontAwesomeIcon icon="pen-nib" size="sm" /></button>
</div >
{/* for the expandable add nodes menu. Not included with the above because once it expands it expands the whole div with it, making canvas interactions limited. */}
@@ -164,7 +163,7 @@ Documents.initProtos(mainDocId, (res?: Document) => {
</div >
- {/* <InkingControl /> */}
+ <InkingControl />
</div >),
document.getElementById('root'));
})