From 3f60fa9f43e8f5bd9891b1687830ec7ef120236e Mon Sep 17 00:00:00 2001 From: Michal Klobukowski Date: Wed, 4 Jul 2018 12:21:54 +0200 Subject: [PATCH] Add prop to pass available items amount to pagination Feature #13703 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- 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 ff51c71c79..a0ddc28a89 100644 --- a/src/components/data-explorer/data-explorer.tsx +++ b/src/components/data-explorer/data-explorer.tsx @@ -7,7 +7,7 @@ import { Grid, Paper, Toolbar, StyleRulesCallback, withStyles, Theme, WithStyles import MoreVertIcon from "@material-ui/icons/MoreVert"; import ContextMenu, { ContextMenuActionGroup, ContextMenuAction } from "../../components/context-menu/context-menu"; import ColumnSelector from "../../components/column-selector/column-selector"; -import DataTable, { DataColumns } from "../../components/data-table/data-table"; +import DataTable, { DataColumns, DataItem } from "../../components/data-table/data-table"; import { mockAnchorFromMouseEvent } from "../../components/popover/helpers"; import { DataColumn } from "../../components/data-table/data-column"; import { DataTableFilterItem } from '../../components/data-table-filters/data-table-filters'; @@ -15,6 +15,7 @@ import SearchInput from '../search-input/search-input'; interface DataExplorerProps { items: T[]; + itemsAvailable: number; columns: DataColumns; contextActions: ContextMenuActionGroup[]; searchValue: string; @@ -38,7 +39,7 @@ interface DataExplorerState { }; } -class DataExplorer extends React.Component & WithStyles, DataExplorerState> { +class DataExplorer extends React.Component & WithStyles, DataExplorerState> { state: DataExplorerState = { contextMenu: {} }; @@ -73,7 +74,7 @@ class DataExplorer extends React.Component & WithStyles< {this.props.items.length > 0 &&