diff options
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"> |