18984: Add indeterminate ui for process type filters
[arvados-workbench2.git] / src / components / tree / tree.tsx
index 3ae884b67cb1e6e51e452ea6e68df0155be7cc1b..6e562dfa52bd0e72bd2cdc2e4039bfaf25bcd6f4 100644 (file)
@@ -97,6 +97,7 @@ export interface TreeItem<T> {
     open: boolean;
     active: boolean;
     selected?: boolean;
+    indeterminate?: boolean;
     flatTree?: boolean;
     status: TreeItemStatus;
     items?: Array<TreeItem<T>>;
@@ -292,6 +293,7 @@ export const Tree = withStyles(styles)(
                             {showSelection(it) && !useRadioButtons &&
                                 <Checkbox
                                     checked={it.selected}
+                                    indeterminate={!it.selected && it.indeterminate}
                                     className={classes.checkbox}
                                     color="primary"
                                     onClick={this.handleCheckboxChange(it)} />}