diff options
author | Lauren Choi <laurenchoi@gmail.com> | 2021-10-30 15:39:22 -0400 |
---|---|---|
committer | Lauren Choi <laurenchoi@gmail.com> | 2021-10-30 15:39:22 -0400 |
commit | c6e0352d19f2385b484e91e1bf0076452869a1db (patch) | |
tree | 6715362c2abcea0d632e2d243ec02d5e46ec977d /src | |
parent | d20c02b245148524f3d6f4fd4dc2dff7a3039b06 (diff) |
change dropdown values and add option for annotation links
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/PropertiesView.tsx | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx index 13018b268..b9a6a5518 100644 --- a/src/client/views/PropertiesView.tsx +++ b/src/client/views/PropertiesView.tsx @@ -1107,6 +1107,12 @@ export class PropertiesView extends React.Component<PropertiesViewProps> { } }); + getCurrLink = () => { + if (LinkManager.currentLink) { + return Doc.GetProto(LinkManager.currentLink); + } + } + getCurrentFollow = () => { if (LinkManager.currentLink) { return StrCast(Doc.GetProto(LinkManager.currentLink).followLinkLocation); @@ -1190,12 +1196,16 @@ export class PropertiesView extends React.Component<PropertiesViewProps> { onChange={e => this.changeFollowBehavior(e.currentTarget.value)} value={this.getCurrentFollow()}> <option value="default">Default</option> - <option value="newLeft">Open in new left pane</option> - <option value="newRight">Open in new right pane</option> - <option value="replaceLeft">Replace left tab</option> - <option value="replaceRight">Replace right tab</option> - <option value="openFull">Open full screen</option> - <option value="openTab">Open in new tab</option> + <option value="add:left">Open in new left pane</option> + <option value="add:right">Open in new right pane</option> + <option value="replace:left">Replace left tab</option> + <option value="replace:right">Replace right tab</option> + <option value="fullScreen">Open full screen</option> + <option value="add">Open in new tab</option> + <option value="replace">Replace current tab</option> + {this.getCurrLink()?.linksToAnnotation + ? <option value="openExternal">Open in external page</option> + : null} </select> </div> <div className="propertiesView-input inline" id="propertiesView-anchor"> |