X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/5627bf1a83323d2b0364cb069564998eb8c6ca7a..e26f661f7af4da4b3c87c17293f009d7eb3c7b57:/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 ee6293ab..41309fdf 100644 --- a/src/views-components/dialog-forms/copy-collection-dialog.ts +++ b/src/views-components/dialog-forms/copy-collection-dialog.ts @@ -5,15 +5,17 @@ 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-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'; 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 +)(DialogCopy); \ No newline at end of file