From 183874da8b5eb84617e3c81a586c0f7c09946d89 Mon Sep 17 00:00:00 2001 From: Janicki Artur Date: Wed, 12 Dec 2018 10:46:02 +0100 Subject: [PATCH 1/1] add new option for data-explorer - hide search input Feature #14512_admin_links Arvados-DCO-1.1-Signed-off-by: Janicki Artur --- src/components/data-explorer/data-explorer.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/data-explorer/data-explorer.tsx b/src/components/data-explorer/data-explorer.tsx index b6b9a83bb5..4175fbc6f2 100644 --- a/src/components/data-explorer/data-explorer.tsx +++ b/src/components/data-explorer/data-explorer.tsx @@ -48,6 +48,7 @@ interface DataExplorerDataProps { hideColumnSelector?: boolean; paperProps?: PaperProps; actions?: React.ReactNode; + hideSearchInput?: boolean; } interface DataExplorerActionProps { @@ -78,16 +79,16 @@ export const DataExplorer = withStyles(styles)( columns, onContextMenu, onFiltersChange, onSortToggle, working, extractKey, rowsPerPage, rowsPerPageOptions, onColumnToggle, searchValue, onSearch, items, itemsAvailable, onRowClick, onRowDoubleClick, classes, - dataTableDefaultView, hideColumnSelector, actions, paperProps, + dataTableDefaultView, hideColumnSelector, actions, paperProps, hideSearchInput } = this.props; return -
+ {!hideSearchInput &&
-
+
} {actions} {!hideColumnSelector &&