//
// 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);