[arvados-workbench2] updated: 2.4.0-105-g16ac6823

git repository hosting git at public.arvados.org
Wed Jun 1 22:10:35 UTC 2022


Summary of changes:
 src/components/data-table-filters/data-table-filters-tree.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

       via  16ac6823842cbb5fcc27903476e3ab673ebd7077 (commit)
      from  58800bbe6e474679dcfbc03735541a578280dd85 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 16ac6823842cbb5fcc27903476e3ab673ebd7077
Author: Stephen Smith <stephen at curii.com>
Date:   Wed Jun 1 18:10:09 2022 -0400

    18984: Only show dirty indicator on non-radio data table filters
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/src/components/data-table-filters/data-table-filters-tree.tsx b/src/components/data-table-filters/data-table-filters-tree.tsx
index fab9086e..7b97865b 100644
--- a/src/components/data-table-filters/data-table-filters-tree.tsx
+++ b/src/components/data-table-filters/data-table-filters-tree.tsx
@@ -34,7 +34,7 @@ export class DataTableFiltersTree extends React.Component<DataTableFilterProps>
             levelIndentation={hasSubfilters ? 20 : 0}
             itemRightPadding={20}
             items={filtersToTree(filters)}
-            render={renderItem}
+            render={this.props.mutuallyExclusive ? renderRadioItem : renderItem}
             showSelection
             useRadioButtons={this.props.mutuallyExclusive}
             disableRipple
@@ -83,6 +83,11 @@ const renderItem = (item: TreeItem<DataTableFilterItem>) =>
         </> : null}
     </span>;
 
+const renderRadioItem = (item: TreeItem<DataTableFilterItem>) =>
+    <span>
+        {item.data.name}
+    </span>;
+
 const filterToTreeItem = (filters: DataTableFilters) =>
     (id: string): TreeItem<any> => {
         const node = getNode(id)(filters) || initTreeNode({ id: '', value: 'InvalidNode' });

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list