X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/a288630d830ed5aa076e3aa8482ab260190311cd..925a083d8e82281a6d1de1f1021a88da147e5bac:/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 17823900..a1c822cf 100644 --- a/src/views-components/dialog-forms/copy-collection-dialog.ts +++ b/src/views-components/dialog-forms/copy-collection-dialog.ts @@ -3,18 +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, CollectionCopyFormDialogData } from '~/store/collections/collection-copy-actions'; -import { DialogCopy } from "~/views-components/dialog-copy/dialog-collection-copy"; -import { copyCollection } from '~/store/workbench/workbench-actions'; +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, + touchOnChange: true, onSubmit: (data, dispatch) => { dispatch(copyCollection(data)); } - }) + }), + pickerId(COLLECTION_COPY_FORM_NAME), )(DialogCopy); \ No newline at end of file