aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/linking/LinkEditor.tsx
diff options
context:
space:
mode:
authorMelissa Zhang <mzhang19096@gmail.com>2020-07-30 10:37:16 -0700
committerMelissa Zhang <mzhang19096@gmail.com>2020-07-30 10:37:16 -0700
commit5b348d21a79a7ecd9ac30d808edaa03c3f26dfef (patch)
treeb9c8b9029c9b574708a3fb673b9924dde9673873 /src/client/views/linking/LinkEditor.tsx
parent7ced683e2c0bbc1b666e0b01799788810cebfd98 (diff)
added option to follow link to external page
Diffstat (limited to 'src/client/views/linking/LinkEditor.tsx')
-rw-r--r--src/client/views/linking/LinkEditor.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/views/linking/LinkEditor.tsx b/src/client/views/linking/LinkEditor.tsx
index 04329182e..737e0ca28 100644
--- a/src/client/views/linking/LinkEditor.tsx
+++ b/src/client/views/linking/LinkEditor.tsx
@@ -395,6 +395,12 @@ export class LinkEditor extends React.Component<LinkEditorProps> {
onPointerDown={() => this.changeFollowBehavior("inTab")}>
Always open in new tab
</div>
+ {this.props.linkDoc.linksToAnnotation ?
+ <div className="linkEditor-followingDropdown-option"
+ onPointerDown={() => this.changeFollowBehavior("openExternal")}>
+ Always open in external page
+ </div>
+ : null}
</div>
</div>
</div>;