aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/TreeView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-04-30 15:03:45 -0400
committerbobzel <zzzman@gmail.com>2021-04-30 15:03:45 -0400
commitc1a664b55ff39c3f1697249e6a712c741efc2458 (patch)
treeed780cc1ab524d30b22893cdf9e22f892ba5896f /src/client/views/collections/TreeView.tsx
parentbdf4ca9e31bd3000aff87d3a4c3db3fda1b47967 (diff)
cleaned up rightbuttons in treeView and fixed so that they show up in dashboard. fixed filters to gatherfield values correctly.
Diffstat (limited to 'src/client/views/collections/TreeView.tsx')
-rw-r--r--src/client/views/collections/TreeView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx
index e1fd78270..49db98743 100644
--- a/src/client/views/collections/TreeView.tsx
+++ b/src/client/views/collections/TreeView.tsx
@@ -626,6 +626,7 @@ export class TreeView extends React.Component<TreeViewProps> {
ContainingCollectionDoc={this.props.treeView.props.Document}
/>;
+ const buttons = this.props.styleProvider?.(this.doc, this.props.treeView.props, 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={{
@@ -636,8 +637,8 @@ export class TreeView extends React.Component<TreeViewProps> {
}} >
{view}
</div >
- <div className={"right-buttons-container"}>
- {this.props.styleProvider?.(this.doc, this.props.treeView.props, StyleProp.Decorations + (Doc.IsSystem(this.props.containerCollection) ? ":afterHeader" : ""))} {/* hide and lock buttons */}
+ <div className="treeView-rightButtons">
+ {buttons} {/* hide and lock buttons */}
{this.headerElements}
</div>
</>;