From db4eb0777639495e6afb6636bbd7c9be6aedd3bc Mon Sep 17 00:00:00 2001
From: Jude <julie_wang1@brown.edu>
Date: Mon, 11 Feb 2019 18:59:05 -0500
Subject: added button

---
 src/client/views/nodes/CollectionFreeFormDocumentView.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'src/client/views/nodes/CollectionFreeFormDocumentView.tsx')

diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
index 1d53cedc4..79cd78f32 100644
--- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
+++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
@@ -159,6 +159,11 @@ export class CollectionFreeFormDocumentView extends DocumentView {
             this.props.ContainingCollectionView.removeDocument(this.props.Document)
         }
     }
+
+    viewAsTreeview = (e: React.MouseEvent): void => {
+        // do something
+    }
+
     @action
     fullScreenClicked = (e: React.MouseEvent): void => {
         CollectionDockingView.OpenFullScreen(this.props.Document);
@@ -198,6 +203,7 @@ export class CollectionFreeFormDocumentView extends DocumentView {
             ContextMenu.Instance.addItem({ description: "Full Screen", event: this.fullScreenClicked })
             ContextMenu.Instance.addItem({ description: "Open Right", event: this.openRight })
             ContextMenu.Instance.addItem({ description: "Delete", event: this.deleteClicked })
+            ContextMenu.Instance.addItem({ description: "View as Treeview", event: this.viewAsTreeview })
             ContextMenu.Instance.displayMenu(e.pageX - 15, e.pageY - 15)
             SelectionManager.SelectDoc(this, e.ctrlKey);
         }
-- 
cgit v1.2.3-70-g09d2

