X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cc9505ee86539329d5ae0c4809aa293c54c2a25c..0ab4372cd072b9fd8f619158615a32b19a52f208:/src/components/data-explorer/data-explorer.tsx diff --git a/src/components/data-explorer/data-explorer.tsx b/src/components/data-explorer/data-explorer.tsx index 9013f948bf..6a3103b140 100644 --- a/src/components/data-explorer/data-explorer.tsx +++ b/src/components/data-explorer/data-explorer.tsx @@ -3,7 +3,8 @@ // SPDX-License-Identifier: AGPL-3.0 import * as React from 'react'; -import { Grid, Paper, Toolbar, StyleRulesCallback, withStyles, Theme, WithStyles, TablePagination, Table } from '@material-ui/core'; +import { Grid, Paper, Toolbar, StyleRulesCallback, withStyles, Theme, WithStyles, TablePagination, Table, IconButton } from '@material-ui/core'; +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 from "../../components/data-table/data-table"; @@ -63,7 +64,9 @@ class DataExplorer extends React.Component & WithStyles< this.props.onRowClick(item)} onRowContextMenu={this.openContextMenu} @@ -115,6 +118,21 @@ class DataExplorer extends React.Component & WithStyles< this.props.onChangeRowsPerPage(parseInt(event.target.value, 10)); } + renderContextMenuTrigger = (item: T) => + + this.openContextMenu(event, item)}> + + + + + contextMenuColumn = { + name: "Actions", + selected: true, + key: "context-actions", + renderHeader: () => null, + render: this.renderContextMenuTrigger + }; + } type CssRules = "searchBox" | "toolbar";