X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/282562ff358c549980a48ccca41944039f86483a..04704ea80b294655fe14d0c8cddf4ec1a6b21b4d:/services/workbench2/src/views/project-panel/project-panel.tsx diff --git a/services/workbench2/src/views/project-panel/project-panel.tsx b/services/workbench2/src/views/project-panel/project-panel.tsx index 2cc751bffd..2ddfca8178 100644 --- a/services/workbench2/src/views/project-panel/project-panel.tsx +++ b/services/workbench2/src/views/project-panel/project-panel.tsx @@ -51,9 +51,9 @@ import { GroupClass, GroupResource } from 'models/group'; import { CollectionResource } from 'models/collection'; import { resourceIsFrozen } from 'common/frozen-resources'; import { ProjectResource } from 'models/project'; -import { NotFoundView } from 'views/not-found-panel/not-found-panel'; +import { deselectAllOthers, toggleOne } from 'store/multiselect/multiselect-actions'; -type CssRules = 'root' | 'button'; +type CssRules = 'root' | 'button' ; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { @@ -243,6 +243,7 @@ interface ProjectPanelDataProps { isAdmin: boolean; userUuid: string; dataExplorerItems: any; + working: boolean; } type ProjectPanelProps = ProjectPanelDataProps & DispatchProp & WithStyles & RouteComponentProps<{ id: string }>; @@ -261,26 +262,20 @@ const mapStateToProps = (state: RootState) => { export const ProjectPanel = withStyles(styles)( connect(mapStateToProps)( class extends React.Component { + render() { const { classes } = this.props; - - return this.props.project ? -
- -
- : - + + } isCurrentItemChild = (resource: Resource) => { @@ -323,6 +318,8 @@ export const ProjectPanel = withStyles(styles)( }; handleRowClick = (uuid: string) => { + this.props.dispatch(toggleOne(uuid)) + this.props.dispatch(deselectAllOthers(uuid)) this.props.dispatch(loadDetailsPanel(uuid)); }; }