From c6e0352d19f2385b484e91e1bf0076452869a1db Mon Sep 17 00:00:00 2001
From: Lauren Choi <laurenchoi@gmail.com>
Date: Sat, 30 Oct 2021 15:39:22 -0400
Subject: change dropdown values and add option for annotation links

---
 src/client/views/PropertiesView.tsx | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

(limited to 'src/client/views/PropertiesView.tsx')

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">
-- 
cgit v1.2.3-70-g09d2

