16068: Merge branch 'main' of git.arvados.org:arvados-workbench2 into 16068-merge...
[arvados-workbench2.git] / src / views-components / dialog-forms / copy-collection-dialog.ts
index 41309fdff6952762ed9ae9d9c2922f53dc3e5082..a1c822cf1f6a9d9e741b0788450d0a2f617b3f4a 100644 (file)
@@ -3,19 +3,22 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import { compose } from "redux";
-import { withDialog } from "~/store/dialog/with-dialog";
+import { withDialog } from "store/dialog/with-dialog";
 import { reduxForm } from 'redux-form';
-import { COLLECTION_COPY_FORM_NAME } from '~/store/collections/collection-copy-actions';
-import { DialogCopy } from "~/views-components/dialog-copy/dialog-copy";
-import { copyCollection } from '~/store/workbench/workbench-actions';
-import { CopyFormDialogData } from '~/store/copy-dialog/copy-dialog';
+import { COLLECTION_COPY_FORM_NAME } from 'store/collections/collection-copy-actions';
+import { DialogCopy } from "views-components/dialog-copy/dialog-copy";
+import { copyCollection } from 'store/workbench/workbench-actions';
+import { CopyFormDialogData } from 'store/copy-dialog/copy-dialog';
+import { pickerId } from 'store/tree-picker/picker-id';
 
 export const CopyCollectionDialog = compose(
     withDialog(COLLECTION_COPY_FORM_NAME),
     reduxForm<CopyFormDialogData>({
         form: COLLECTION_COPY_FORM_NAME,
+        touchOnChange: true,
         onSubmit: (data, dispatch) => {
             dispatch(copyCollection(data));
         }
-    })
+    }),
+    pickerId(COLLECTION_COPY_FORM_NAME),
 )(DialogCopy);
\ No newline at end of file