diff options
author | monikahedman <monika_hedman@brown.edu> | 2019-08-27 19:06:03 -0400 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2019-08-27 19:06:03 -0400 |
commit | 7641b0bc801bb135e4b710a60a50ff1d08b49f1c (patch) | |
tree | 940fe0f9c3fe690693fb6089dbf7ab573dcebda6 /src/client/views/linking/LinkFollowBox.tsx | |
parent | f204675b5b952fd9fdf301c41d702cfe1f5633e3 (diff) |
TAB IS NOT WORKING
Diffstat (limited to 'src/client/views/linking/LinkFollowBox.tsx')
-rw-r--r-- | src/client/views/linking/LinkFollowBox.tsx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/client/views/linking/LinkFollowBox.tsx b/src/client/views/linking/LinkFollowBox.tsx index 588f48017..54670e2c7 100644 --- a/src/client/views/linking/LinkFollowBox.tsx +++ b/src/client/views/linking/LinkFollowBox.tsx @@ -58,14 +58,10 @@ export class LinkFollowBox extends React.Component<FieldViewProps> { constructor(props: FieldViewProps) { super(props); LinkFollowBox.Instance = this; + this.resetVars(); this.props.Document.isBackground = true; } - @computed - get getDoc() { - return this.props.Document; - } - componentDidMount = () => { this.resetVars(); @@ -270,7 +266,9 @@ export class LinkFollowBox extends React.Component<FieldViewProps> { openLinkTab = () => { if (LinkFollowBox.destinationDoc) { let fullScreenAlias = Doc.MakeAlias(LinkFollowBox.destinationDoc); + // THIS IS EMPTY FUNCTION this.props.addDocTab(fullScreenAlias, undefined, "inTab"); + console.log(this.props.addDocTab) this.highlightDoc(); SelectionManager.DeselectAll(); @@ -323,7 +321,7 @@ export class LinkFollowBox extends React.Component<FieldViewProps> { } //set this to be the default link behavior, can be any of the above - public defaultLinkBehavior: (options?: any) => void = this.openLinkRight; + public defaultLinkBehavior: (options?: any) => void = this.openLinkTab; @action currentLinkBehavior = () => { |