X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/49e31d482873af1328b934bf8f07d8e1d00ce5b6..c7e85a03f2726bd20bc10aeb9edb2cc826f16909:/src/views-components/dialog-forms/copy-collection-dialog.ts diff --git a/src/views-components/dialog-forms/copy-collection-dialog.ts b/src/views-components/dialog-forms/copy-collection-dialog.ts index 9f25c14b..3c8f7ebf 100644 --- a/src/views-components/dialog-forms/copy-collection-dialog.ts +++ b/src/views-components/dialog-forms/copy-collection-dialog.ts @@ -5,15 +5,19 @@ import { compose } from "redux"; import { withDialog } from "~/store/dialog/with-dialog"; import { reduxForm } from 'redux-form'; -import { COLLECTION_COPY_FORM_NAME, CollectionCopyFormDialogData, copyCollection } from '~/store/collections/collection-copy-actions'; -import { DialogCollectionCopy } from "~/views-components/dialog-collection-copy/dialog-collection-copy"; +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({ + reduxForm({ form: COLLECTION_COPY_FORM_NAME, onSubmit: (data, dispatch) => { dispatch(copyCollection(data)); } - }) -)(DialogCollectionCopy); \ No newline at end of file + }), + pickerId(COLLECTION_COPY_FORM_NAME), +)(DialogCopy); \ No newline at end of file