diff options
| author | bobzel <zzzman@gmail.com> | 2022-04-01 10:34:09 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-04-01 10:34:09 -0400 |
| commit | 19366220aabeeb6fcdac6fa056b9b0e9585e8e6b (patch) | |
| tree | c1ec26a515c77725f628c92b601647bca8946e8e /src/client/views/collections/TreeView.tsx | |
| parent | d5d472521229f006f4a95d5c019276ec0281ac57 (diff) | |
fixed up document focus to take a collectkon so that the treeView can focus on the matching alias when multiple aliases are shown in different collections.
Diffstat (limited to 'src/client/views/collections/TreeView.tsx')
| -rw-r--r-- | src/client/views/collections/TreeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx index eedb353e3..ff5c4bab1 100644 --- a/src/client/views/collections/TreeView.tsx +++ b/src/client/views/collections/TreeView.tsx @@ -669,7 +669,7 @@ export class TreeView extends React.Component<TreeViewProps> { ContentScaling={returnOne} />; - const buttons = this.props.styleProvider?.(this.doc, this.props.treeView.props, StyleProp.Decorations + (Doc.IsSystem(this.props.containerCollection) ? ":afterHeader" : "")); + const buttons = this.props.styleProvider?.(this.doc, { ...this.props.treeView.props, ContainingCollectionDoc: this.props.parentTreeView?.doc }, StyleProp.Decorations + (Doc.IsSystem(this.props.containerCollection) ? ":afterHeader" : "")); return <> <div className={`docContainer${Doc.IsSystem(this.props.document) || this.props.document.isFolder ? "-system" : ""}`} ref={this._tref} title="click to edit title. Double Click or Drag to Open" style={{ |
