X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/f2b031de2183439f8aade2f290cd0e3f95f6438c..9c73ce8f871a403f2d9e15fbb15ef58fa6adc64c:/src/views/workbench/workbench.tsx diff --git a/src/views/workbench/workbench.tsx b/src/views/workbench/workbench.tsx index cffae743..4d0adf15 100644 --- a/src/views/workbench/workbench.tsx +++ b/src/views/workbench/workbench.tsx @@ -29,7 +29,6 @@ import { CreateProjectDialog } from "~/views-components/create-project-dialog/cr import { detailsPanelActions, loadDetails } from "~/store/details-panel/details-panel-action"; import { contextMenuActions } from "~/store/context-menu/context-menu-actions"; -import { SidePanelIdentifiers } from '~/store/side-panel/side-panel-reducer'; import { ProjectResource } from '~/models/project'; import { ResourceKind } from '~/models/resource'; import { ContextMenu, ContextMenuKind } from "~/views-components/context-menu/context-menu"; @@ -51,6 +50,8 @@ import { DialogCollectionCreateWithSelectedFile } from '~/views-components/creat import { MoveToProjectDialog } from '../../views-components/move-to-dialog/move-to-dialog'; import { COLLECTION_CREATE_DIALOG } from '~/views-components/dialog-create/dialog-collection-create'; import { PROJECT_CREATE_DIALOG } from '~/views-components/dialog-create/dialog-project-create'; +import { UploadCollectionFilesDialog } from '~/views-components/upload-collection-files-dialog/upload-collection-files-dialog'; +import { CollectionPartialCopyDialog } from '../../views-components/collection-partial-copy-dialog/collection-partial-copy-dialog'; const DRAWER_WITDH = 240; const APP_BAR_HEIGHT = 100; @@ -102,14 +103,15 @@ interface WorkbenchDataProps { sidePanelItems: SidePanelItem[]; } -interface WorkbenchServiceProps { +interface WorkbenchGeneralProps { authService: AuthService; + buildInfo: string; } interface WorkbenchActionProps { } -type WorkbenchProps = WorkbenchDataProps & WorkbenchServiceProps & WorkbenchActionProps & DispatchProp & WithStyles; +type WorkbenchProps = WorkbenchDataProps & WorkbenchGeneralProps & WorkbenchActionProps & DispatchProp & WithStyles; interface NavBreadcrumb extends Breadcrumb { itemId: string; @@ -194,6 +196,7 @@ export const Workbench = withStyles(styles)( searchText={this.state.searchText} user={this.props.user} menuItems={this.state.menuItems} + buildInfo={this.props.buildInfo} {...this.mainAppBarActions} /> {user && @@ -223,14 +226,13 @@ export const Workbench = withStyles(styles)( toggleActive={itemId => { this.props.dispatch(setProjectItem(itemId, ItemMode.ACTIVE)); this.props.dispatch(loadDetails(itemId, ResourceKind.PROJECT)); - this.props.dispatch(sidePanelActions.TOGGLE_SIDE_PANEL_ITEM_ACTIVE(SidePanelIdentifiers.PROJECTS)); }} /> }
- } /> + } /> @@ -243,11 +245,13 @@ export const Workbench = withStyles(styles)( + + { - this.props.dispatch(sidePanelActions.TOGGLE_SIDE_PANEL_ITEM_ACTIVE(itemId)); this.props.dispatch(projectActions.RESET_PROJECT_TREE_ACTIVITY(itemId)); const panelItem = this.props.sidePanelItems.find(it => it.id === itemId);