X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/f75b0aa3966895160535bad24b05c1a763665a5a..d53a08ea0cc9a9af1a3071969d41165e8a6ff5d5:/src/views/workbench/workbench.tsx
diff --git a/src/views/workbench/workbench.tsx b/src/views/workbench/workbench.tsx
index 7103efd1..ce930746 100644
--- a/src/views/workbench/workbench.tsx
+++ b/src/views/workbench/workbench.tsx
@@ -32,7 +32,12 @@ import { MoveProcessDialog } from 'views-components/dialog-forms/move-process-di
import { MoveProjectDialog } from 'views-components/dialog-forms/move-project-dialog';
import { MoveCollectionDialog } from 'views-components/dialog-forms/move-collection-dialog';
import { FilesUploadCollectionDialog } from 'views-components/dialog-forms/files-upload-collection-dialog';
-import { PartialCopyCollectionDialog } from 'views-components/dialog-forms/partial-copy-collection-dialog';
+import { PartialCopyToNewCollectionDialog } from 'views-components/dialog-forms/partial-copy-to-new-collection-dialog';
+import { PartialCopyToExistingCollectionDialog } from 'views-components/dialog-forms/partial-copy-to-existing-collection-dialog';
+import { PartialCopyToSeparateCollectionsDialog } from 'views-components/dialog-forms/partial-copy-to-separate-collections-dialog';
+import { PartialMoveToNewCollectionDialog } from 'views-components/dialog-forms/partial-move-to-new-collection-dialog';
+import { PartialMoveToExistingCollectionDialog } from 'views-components/dialog-forms/partial-move-to-existing-collection-dialog';
+import { PartialMoveToSeparateCollectionsDialog } from 'views-components/dialog-forms/partial-move-to-separate-collections-dialog';
import { RemoveProcessDialog } from 'views-components/process-remove-dialog/process-remove-dialog';
import { MainContentBar } from 'views-components/main-content-bar/main-content-bar';
import { Grid } from '@material-ui/core';
@@ -41,6 +46,7 @@ import { SharedWithMePanel } from 'views/shared-with-me-panel/shared-with-me-pan
import { RunProcessPanel } from 'views/run-process-panel/run-process-panel';
import SplitterLayout from 'react-splitter-layout';
import { WorkflowPanel } from 'views/workflow-panel/workflow-panel';
+import { RegisteredWorkflowPanel } from 'views/workflow-panel/registered-workflow-panel';
import { SearchResultsPanel } from 'views/search-results-panel/search-results-panel';
import { SshKeyPanel } from 'views/ssh-key-panel/ssh-key-panel';
import { SshKeyAdminPanel } from 'views/ssh-key-panel/ssh-key-admin-panel';
@@ -87,7 +93,6 @@ import { GroupAttributesDialog } from 'views-components/groups-dialog/attributes
import { GroupDetailsPanel } from 'views/group-details-panel/group-details-panel';
import { RemoveGroupMemberDialog } from 'views-components/groups-dialog/member-remove-dialog';
import { GroupMemberAttributesDialog } from 'views-components/groups-dialog/member-attributes-dialog';
-import { PartialCopyToCollectionDialog } from 'views-components/dialog-forms/partial-copy-to-collection-dialog';
import { PublicFavoritePanel } from 'views/public-favorites-panel/public-favorites-panel';
import { LinkAccountPanel } from 'views/link-account-panel/link-account-panel';
import { FedLogin } from './fed-login';
@@ -166,6 +171,7 @@ let routes = <>
+
@@ -195,22 +201,22 @@ routes = React.createElement(React.Fragment, null, pluginConfig.centerPanelList.
const applyCollapsedState = (isCollapsed) => {
const rightPanel: Element = document.getElementsByClassName('layout-pane')[1]
const totalWidth: number = document.getElementsByClassName('splitter-layout')[0]?.clientWidth
- const rightPanelExpandedWidth = ((totalWidth-COLLAPSE_ICON_SIZE)) / (totalWidth/100)
- if(rightPanel) {
+ const rightPanelExpandedWidth = ((totalWidth - COLLAPSE_ICON_SIZE)) / (totalWidth / 100)
+ if (rightPanel) {
rightPanel.setAttribute('style', `width: ${isCollapsed ? rightPanelExpandedWidth : getSplitterInitialSize()}%`)
}
const splitter = document.getElementsByClassName('layout-splitter')[0]
isCollapsed ? splitter?.classList.add('layout-splitter-disabled') : splitter?.classList.remove('layout-splitter-disabled')
-
+
}
export const WorkbenchPanel =
- withStyles(styles)((props: WorkbenchPanelProps) =>{
+ withStyles(styles)((props: WorkbenchPanelProps) => {
//panel size will not scale automatically on window resize, so we do it manually
- window.addEventListener('resize', ()=>applyCollapsedState(props.sidePanelIsCollapsed))
+ window.addEventListener('resize', () => applyCollapsedState(props.sidePanelIsCollapsed))
applyCollapsedState(props.sidePanelIsCollapsed)
-
+
return
{props.sessionIdleTimeout > 0 && }
@@ -262,8 +268,12 @@ export const WorkbenchPanel =
-
-
+
+
+
+
+
+
@@ -296,5 +306,6 @@ export const WorkbenchPanel =
{React.createElement(React.Fragment, null, pluginConfig.dialogs)}
- }
+
+ }
);