diff options
author | bob <bcz@cs.brown.edu> | 2020-03-09 13:49:21 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-03-09 13:49:21 -0400 |
commit | cabb2cf9065d85112f1bd89e31b41dafdbc4ba54 (patch) | |
tree | 03ba4354fcaa0cdbd12db1e2a06bedb1421a0b7e /src/client/views/DocumentButtonBar.tsx | |
parent | d46ff869dcbb3d5cadeeb9ad6251ef5f9a5c3b2d (diff) |
fixed showing links only to doculink boxes. changed field names for links to be more readable.
Diffstat (limited to 'src/client/views/DocumentButtonBar.tsx')
-rw-r--r-- | src/client/views/DocumentButtonBar.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx index 52544d3c9..23875fa33 100644 --- a/src/client/views/DocumentButtonBar.tsx +++ b/src/client/views/DocumentButtonBar.tsx @@ -121,7 +121,7 @@ export class DocumentButtonBar extends React.Component<{ views: (DocumentView | const linkDoc = dropEv.linkDragData?.linkDocument as Doc; // equivalent to !dropEve.aborted since linkDocument is only assigned on a completed drop if (this.view0 && linkDoc) { const proto = Doc.GetProto(linkDoc); - proto.anchor1Context = this.view0.props.ContainingCollectionDoc; + proto.anchor1_context = this.view0.props.ContainingCollectionDoc; Doc.GetProto(linkDoc).linkRelationship = "hyperlink"; const anchor2Title = linkDoc.anchor2 instanceof Doc ? StrCast(linkDoc.anchor2.title) : "-untitled-"; |