From f1d89e46aa4a2d10dcbe6d36ecf2aebdb348f887 Mon Sep 17 00:00:00 2001 From: bob Date: Thu, 5 Dec 2019 11:37:08 -0500 Subject: better highlighting of path target --- src/client/views/collections/CollectionTreeView.tsx | 2 +- src/client/views/nodes/DocumentView.tsx | 2 +- src/new_fields/Doc.ts | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx index 219d56607..bf612e4f1 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -400,7 +400,7 @@ class TreeView extends React.Component {
(Docu cm.addItem({ description: `path: ${path}`, event: () => { this.props.LibraryPath.map(lp => Doc.GetProto(lp).treeViewOpen = lp.treeViewOpen = true); - Doc.BrushDoc(this.props.Document); + Doc.linkFollowHighlight(this.props.Document); }, icon: "check" }); } diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index cf32fa74a..6f55775fe 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -700,8 +700,7 @@ export namespace Doc { } const highlightManager = new HighlightBrush(); export function IsHighlighted(doc: Doc) { - const IsHighlighted = highlightManager.HighlightedDoc.get(doc) || highlightManager.HighlightedDoc.get(Doc.GetDataDoc(doc)); - return IsHighlighted; + return highlightManager.HighlightedDoc.get(doc) || highlightManager.HighlightedDoc.get(Doc.GetDataDoc(doc)); } export function HighlightDoc(doc: Doc) { runInAction(() => { -- cgit v1.2.3-70-g09d2