X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bfaee40696c3c15556ef089e69da47bb832b08db..37516bc14fdfe634c78764c15f3a8eb3a09b403c:/services/workbench2/src/views-components/dialog-forms/copy-collection-dialog.ts diff --git a/services/workbench2/src/views-components/dialog-forms/copy-collection-dialog.ts b/services/workbench2/src/views-components/dialog-forms/copy-collection-dialog.ts index a1c822cf1f..220b5a2c4d 100644 --- a/services/workbench2/src/views-components/dialog-forms/copy-collection-dialog.ts +++ b/services/workbench2/src/views-components/dialog-forms/copy-collection-dialog.ts @@ -4,12 +4,12 @@ import { compose } from "redux"; 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 { pickerId } from 'store/tree-picker/picker-id'; +import { reduxForm } from "redux-form"; +import { COLLECTION_COPY_FORM_NAME, COLLECTION_MULTI_COPY_FORM_NAME } from "store/collections/collection-copy-actions"; +import { DialogCopy, DialogMultiCopy } 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), @@ -18,7 +18,19 @@ export const CopyCollectionDialog = compose( touchOnChange: true, onSubmit: (data, dispatch) => { dispatch(copyCollection(data)); - } + }, }), - pickerId(COLLECTION_COPY_FORM_NAME), -)(DialogCopy); \ No newline at end of file + pickerId(COLLECTION_COPY_FORM_NAME) +)(DialogCopy); + +export const CopyMultiCollectionDialog = compose( + withDialog(COLLECTION_MULTI_COPY_FORM_NAME), + reduxForm({ + form: COLLECTION_MULTI_COPY_FORM_NAME, + touchOnChange: true, + onSubmit: (data, dispatch) => { + dispatch(copyCollection(data)); + }, + }), + pickerId(COLLECTION_MULTI_COPY_FORM_NAME) +)(DialogMultiCopy);