From faf0cc17a47aacaef48b4fe18c2f52af0a360805 Mon Sep 17 00:00:00 2001
From: bob <bcz@cs.brown.edu>
Date: Mon, 11 Mar 2019 15:47:15 -0400
Subject: cleaned up linkmenu.

---
 src/client/views/nodes/LinkBox.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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

diff --git a/src/client/views/nodes/LinkBox.tsx b/src/client/views/nodes/LinkBox.tsx
index c7911f554..69df676ff 100644
--- a/src/client/views/nodes/LinkBox.tsx
+++ b/src/client/views/nodes/LinkBox.tsx
@@ -10,6 +10,7 @@ import { Document } from "../../../fields/Document";
 import { ListField } from "../../../fields/ListField";
 import { DocumentManager } from "../../util/DocumentManager";
 import { LinkEditor } from "./LinkEditor";
+import { CollectionDockingView } from "../collections/CollectionDockingView";
 
 interface Props {
     linkDoc: Document;
@@ -28,6 +29,8 @@ export class LinkBox extends React.Component<Props> {
         let docView = DocumentManager.Instance.getDocumentView(this.props.pairedDoc);
         if (docView) {
             docView.props.focus(this.props.pairedDoc);
+        } else {
+            CollectionDockingView.Instance.AddRightSplit(this.props.pairedDoc)
         }
     }
 
@@ -66,7 +69,7 @@ export class LinkBox extends React.Component<Props> {
         return (
             //<LinkEditor linkBox={this} linkDoc={this.props.linkDoc} />
             <div className="link-container">
-                <div className="info-container">
+                <div className="info-container" onPointerDown={this.onViewButtonPressed}>
                     <div className="link-name">
                         <p>{this.props.linkName}</p>
                     </div>
-- 
cgit v1.2.3-70-g09d2

