X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/fc84a3f3932af503d3afd04a58af52270c8fc3b6..9a59fad2b6a97af963728a5111395f9caa71802f:/src/views/project-panel/project-panel.tsx?ds=inline diff --git a/src/views/project-panel/project-panel.tsx b/src/views/project-panel/project-panel.tsx index 4a3f60a6..ccb40d53 100644 --- a/src/views/project-panel/project-panel.tsx +++ b/src/views/project-panel/project-panel.tsx @@ -20,7 +20,7 @@ import { ResourceLastModifiedDate, ProcessStatus, ResourceType, - ResourceOwner + ResourceOwnerWithName } from 'views-components/data-explorer/renderers'; import { ProjectIcon } from 'components/icon/icon'; import { ResourceName } from 'views-components/data-explorer/renderers'; @@ -36,7 +36,6 @@ import { import { navigateTo } from 'store/navigation/navigation-action'; import { getProperty } from 'store/properties/properties'; import { PROJECT_PANEL_CURRENT_UUID } from 'store/project-panel/project-panel-action'; -import { DataTableDefaultView } from 'components/data-table-default-view/data-table-default-view'; import { ArvadosTheme } from "common/custom-theme"; import { createTree } from 'models/tree'; import { @@ -100,7 +99,7 @@ export const projectPanelColumns: DataColumns = [ selected: false, configurable: true, filters: createTree(), - render: uuid => + render: uuid => }, { name: ProjectPanelColumnNames.FILE_SIZE, @@ -131,20 +130,23 @@ interface ProjectPanelDataProps { resources: ResourcesState; isAdmin: boolean; userUuid: string; + dataExplorerItems: any; } type ProjectPanelProps = ProjectPanelDataProps & DispatchProp & WithStyles & RouteComponentProps<{ id: string }>; + export const ProjectPanel = withStyles(styles)( connect((state: RootState) => ({ currentItemId: getProperty(PROJECT_PANEL_CURRENT_UUID)(state.properties), resources: state.resources, - userUuid: state.auth.user!.uuid, + userUuid: state.auth.user!.uuid }))( class extends React.Component { render() { const { classes } = this.props; + return
- } /> + defaultViewIcon={ProjectIcon} + defaultViewMessages={DEFAULT_VIEW_MESSAGES} + />
; } @@ -180,11 +180,12 @@ export const ProjectPanel = withStyles(styles)( name: resource.name, uuid: resource.uuid, ownerUuid: resource.ownerUuid, - isTrashed: ('isTrashed' in resource) ? resource.isTrashed: false, + isTrashed: ('isTrashed' in resource) ? resource.isTrashed : false, kind: resource.kind, menuKind, description: resource.description, storageClassesDesired: (resource as CollectionResource).storageClassesDesired, + properties: ('properties' in resource) ? resource.properties : {}, })); } this.props.dispatch(loadDetailsPanel(resourceUuid));