diff options
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 = () => { |