X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b352c3862814fe0bdd2b5a40b1dc8171474dbb48..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 efaf53eb49..2ddfca8178 100644 --- a/services/workbench2/src/views/project-panel/project-panel.tsx +++ b/services/workbench2/src/views/project-panel/project-panel.tsx @@ -51,10 +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 { toggleOne } from 'store/multiselect/multiselect-actions'; +import { deselectAllOthers, toggleOne } from 'store/multiselect/multiselect-actions'; -type CssRules = 'root' | 'button'; +type CssRules = 'root' | 'button' ; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { @@ -244,6 +243,7 @@ interface ProjectPanelDataProps { isAdmin: boolean; userUuid: string; dataExplorerItems: any; + working: boolean; } type ProjectPanelProps = ProjectPanelDataProps & DispatchProp & WithStyles & RouteComponentProps<{ id: string }>; @@ -262,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) => { @@ -325,6 +319,7 @@ export const ProjectPanel = withStyles(styles)( handleRowClick = (uuid: string) => { this.props.dispatch(toggleOne(uuid)) + this.props.dispatch(deselectAllOthers(uuid)) this.props.dispatch(loadDetailsPanel(uuid)); }; }