diff options
| author | bobzel <zzzman@gmail.com> | 2021-04-06 17:59:50 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-04-06 17:59:50 -0400 |
| commit | d5b1abae714b4bae0f02ce57a91477bdb2502078 (patch) | |
| tree | 93118a654ad6c8a57a4c6001e163cfdebf25cda3 /src/client/views/collections | |
| parent | b9d1ec2d3a7b49ad902eea17bb26525429d50dbf (diff) | |
little cleanup
Diffstat (limited to 'src/client/views/collections')
| -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 c7322598c..5cf8a6986 100644 --- a/src/client/views/collections/TreeView.tsx +++ b/src/client/views/collections/TreeView.tsx @@ -441,7 +441,7 @@ export class TreeView extends React.Component<TreeViewProps> { @computed get renderBullet() { TraceMobx(); - const iconType = this.doc.isFolder ? (this.treeViewOpen ? "chevron-down" : "chevron-right") : Doc.toIcon(this.doc); + const iconType = this.props.treeView.props.styleProvider?.(this.doc, this.props.treeView.props, StyleProp.TreeViewIcon + (this.treeViewOpen ? ":open" : "")) || "question"; const checked = this.onCheckedClick ? (this.doc.treeViewChecked ?? "unchecked") : undefined; return <div className={`bullet${this.props.treeView.outlineMode ? "-outline" : ""}`} key={"bullet"} title={this.childDocs?.length ? `click to see ${this.childDocs?.length} items` : "view fields"} |
