aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MainView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-08-29 14:50:22 -0400
committerbob <bcz@cs.brown.edu>2019-08-29 14:50:22 -0400
commitf6c15087d30f27c15b3b6304af58c93c65536131 (patch)
tree9e64469ba1803df24db9f821f33743c1cf9abdad /src/client/views/MainView.tsx
parente2317289507fd6d20096dc1d2abd5ab1d815e895 (diff)
changed linkFollowBox creation approach. fixed target contexts to add link default.
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r--src/client/views/MainView.tsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index 1fc8d1397..b64986084 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -438,13 +438,7 @@ export class MainView extends React.Component {
if (LinkFollowBox.Instance) {
let dvs = DocumentManager.Instance.getDocumentViews(LinkFollowBox.Instance.props.Document);
// if it already exisits, close it
- if (dvs.length > 0 && shouldClose) LinkFollowBox.Instance.close();
- // open it if not
- else Doc.AddDocToList(Cast(CurrentUserUtils.UserDocument.overlays, Doc) as Doc, "data", LinkFollowBox.Instance.props.Document);
- }
- else {
- let doc = Docs.Create.LinkFollowBoxDocument({ x: this.flyoutWidth, y: 20, width: 500, height: 370, title: "Link Follower" });
- Doc.AddDocToList(Cast(CurrentUserUtils.UserDocument.overlays, Doc) as Doc, "data", doc);
+ LinkFollowBox.Instance.props.Document.isMinimized = (dvs.length > 0 && shouldClose);
}
}