Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git] / src / views-components / dialog-forms / copy-process-dialog.ts
index d063562817a942594e8a5622420eadad68fc973c..8afa58dde9583b3cee6f5a1c72651cd13fe952d3 100644 (file)
@@ -2,19 +2,22 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { compose } from "redux";
-import { withDialog } from "~/store/dialog/with-dialog";
+import { compose } from 'redux';
+import { withDialog } from 'store/dialog/with-dialog';
 import { reduxForm } from 'redux-form';
-import { PROCESS_COPY_FORM_NAME, ProcessCopyFormDialogData } from '~/store/processes/process-copy-actions';
-import { DialogCopy } from "~/views-components/dialog-copy/dialog-collection-copy";
-import { copyCollection } from '~/store/workbench/workbench-actions';
+import { PROCESS_COPY_FORM_NAME } from 'store/processes/process-copy-actions';
+import { DialogProcessRerun } from 'views-components/dialog-copy/dialog-process-rerun';
+import { copyProcess } from 'store/workbench/workbench-actions';
+import { CopyFormDialogData } from 'store/copy-dialog/copy-dialog';
+import { pickerId } from 'store/tree-picker/picker-id';
 
 export const CopyProcessDialog = compose(
     withDialog(PROCESS_COPY_FORM_NAME),
-    reduxForm<ProcessCopyFormDialogData>({
+    reduxForm<CopyFormDialogData>({
         form: PROCESS_COPY_FORM_NAME,
         onSubmit: (data, dispatch) => {
-            dispatch(copyCollection(data));
-        }
-    })
-)(DialogCopy);
\ No newline at end of file
+            dispatch(copyProcess(data));
+        },
+    }),
+    pickerId(PROCESS_COPY_FORM_NAME)
+)(DialogProcessRerun);