X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e86a96f413affec0a05a9843d2e8d960000843b6..e1953022010bc0679a2d79baf5c040b8312c5d8b:/services/workbench2/src/components/data-table/data-table.tsx diff --git a/services/workbench2/src/components/data-table/data-table.tsx b/services/workbench2/src/components/data-table/data-table.tsx index c1b5167b46..7b78799457 100644 --- a/services/workbench2/src/components/data-table/data-table.tsx +++ b/services/workbench2/src/components/data-table/data-table.tsx @@ -29,6 +29,7 @@ import { SvgIconProps } from "@material-ui/core/SvgIcon"; import ArrowDownwardIcon from "@material-ui/icons/ArrowDownward"; import { createTree } from "models/tree"; import { DataTableMultiselectOption } from "../data-table-multiselect-popover/data-table-multiselect-popover"; +import { PendingIcon } from "components/icon/icon"; export type DataColumns = Array>; @@ -168,7 +169,10 @@ export const DataTable = withStyles(styles)( if (prevProps.currentRoute !== this.props.currentRoute) { this.initializeCheckedList([]) } - if((prevProps.working === true && this.props.working === false || this.props.items.length > 0) && !this.state.isLoaded) { + if(prevProps.working === true && this.props.working === false) { + this.setState({ isLoaded: true }); + } + if((this.props.items.length > 0) && !this.state.isLoaded) { this.setState({ isLoaded: true }); } } @@ -295,7 +299,6 @@ export const DataTable = withStyles(styles)( const { isLoaded } = this.state; if (columns[0].name === this.checkBoxColumn.name) columns.shift(); columns.unshift(this.checkBoxColumn); - console.log(items) return (
@@ -315,24 +318,23 @@ export const DataTable = withStyles(styles)( const { isLoaded } = this.state; const { working, isNotFound } = this.props; const dirty = columns.some(column => getTreeDirty("")(column.filters)); - console.log('isNotFound', isNotFound, 'isLoaded', isLoaded, 'working', working, ) if (isNotFound && isLoaded) { return ( ); } else if (isLoaded === false || working === true) { return ( ); } else { - //if (isLoaded && !working && !isNotFound) + // isLoaded && !working && !isNotFound return ( { - console.log('item', item) const { onRowClick, onRowDoubleClick, extractKey, classes, currentItemUuid, currentRoute } = this.props; return (