aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/TreeView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-08-27 20:25:55 -0400
committerbobzel <zzzman@gmail.com>2023-08-27 20:25:55 -0400
commit9d6c7f8100de3a952d20ad41ab20872737cb909e (patch)
tree4e0ac145e4f22649b6516819f094e5ba0e6d6829 /src/client/views/collections/TreeView.tsx
parent9405a97acabb70ac671029f61e825ba00a8dc3ce (diff)
lots of cleanup to streamline import orderings (ie packages should not mutually import each other directly or via a chain). change raiseWhenDragged to be keepZWhenDragged and got rid of system wide default.
Diffstat (limited to 'src/client/views/collections/TreeView.tsx')
-rw-r--r--src/client/views/collections/TreeView.tsx11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx
index 3402a8c8d..701150769 100644
--- a/src/client/views/collections/TreeView.tsx
+++ b/src/client/views/collections/TreeView.tsx
@@ -35,6 +35,7 @@ import { CollectionView } from './CollectionView';
import './TreeView.scss';
import React = require('react');
import { IconButton, Size } from 'browndash-components';
+import { TreeSort } from './TreeSort';
export interface TreeViewProps {
treeView: CollectionTreeView;
@@ -77,12 +78,6 @@ const treeBulletWidth = function () {
return Number(TREE_BULLET_WIDTH.replace('px', ''));
};
-export enum TreeSort {
- AlphaUp = 'alphabetical from z',
- AlphaDown = 'alphabetical from A',
- Zindex = 'by Z index',
- WhenAdded = 'when added',
-}
/**
* Renders a treeView of a collection of documents
*
@@ -578,7 +573,7 @@ export class TreeView extends React.Component<TreeViewProps> {
return (
<div>
{!docs?.length || this.props.AddToMap /* hack to identify pres box trees */ ? null : (
- <div className='treeView-sorting'>
+ <div className="treeView-sorting">
<IconButton
color={sortings[sorting]?.color}
size={Size.XSMALL}
@@ -602,7 +597,7 @@ export class TreeView extends React.Component<TreeViewProps> {
style={{ cursor: 'inherit' }}
key={expandKey + 'more'}
title={`Sorted by : ${this.doc.treeView_SortCriterion}. click to cycle`}
- className='' //this.doc.treeView_HideTitle ? 'no-indent' : ''}
+ className="" //this.doc.treeView_HideTitle ? 'no-indent' : ''}
onPointerDown={e => {
downX = e.clientX;
downY = e.clientY;