diff options
author | monikahedman <monika_hedman@brown.edu> | 2019-08-26 10:43:19 -0400 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2019-08-26 10:43:19 -0400 |
commit | accfe9900c0b830ef08db3c70fe4940dd3c8c81e (patch) | |
tree | 53fc13cb71b05a4adb846557dbbbc80dfa9eb148 /src/client/views/linking/LinkMenuItem.tsx | |
parent | a085e811d0b1332619ae9117a4dbf13316a82730 (diff) |
open in place working
Diffstat (limited to 'src/client/views/linking/LinkMenuItem.tsx')
-rw-r--r-- | src/client/views/linking/LinkMenuItem.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/linking/LinkMenuItem.tsx b/src/client/views/linking/LinkMenuItem.tsx index 406429ebf..d2dc3f7ff 100644 --- a/src/client/views/linking/LinkMenuItem.tsx +++ b/src/client/views/linking/LinkMenuItem.tsx @@ -175,7 +175,7 @@ export class LinkMenuItem extends React.Component<LinkMenuItemProps> { } //set this to be the default link behavior, can be any of the above - // private defaultLinkBehavior: any = LinkFollowBox.computeLinkDocs(this.props.linkDoc); + private defaultLinkBehavior: any = this.openLinkInPlace; onEdit = (e: React.PointerEvent): void => { e.stopPropagation(); @@ -244,6 +244,8 @@ export class LinkMenuItem extends React.Component<LinkMenuItemProps> { {/* <div title="Follow link" className="button" onPointerDown={this.onFollowLink}><FontAwesomeIcon className="fa-icon" icon="arrow-right" size="sm" /></div> */} {/* New */} <div title="Follow link" className="button" onClick={() => LinkFollowBox.Instance.setLinkDocs(this.props.linkDoc, this.props.sourceDoc, this.props.destinationDoc)}><FontAwesomeIcon className="fa-icon" icon="arrow-right" size="sm" /></div> + {/* <div title="Follow link" className="button" onClick={this.defaultLinkBehavior}><FontAwesomeIcon className="fa-icon" icon="arrow-right" size="sm" /></div> */} + </div> </div> {this._showMore ? this.renderMetadata() : <></>} |