From c6e0352d19f2385b484e91e1bf0076452869a1db Mon Sep 17 00:00:00 2001 From: Lauren Choi 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') 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 { } }); + 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 { onChange={e => this.changeFollowBehavior(e.currentTarget.value)} value={this.getCurrentFollow()}> - - - - - - + + + + + + + + {this.getCurrLink()?.linksToAnnotation + ? + : null}
-- cgit v1.2.3-70-g09d2