X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a0d117b3fae1311a6eb98612946be8966bdf2cf5..5786e88839dd7ef52885a03aedfc7642b19cd5a1:/src/views-components/dialog-forms/create-collection-dialog.ts diff --git a/src/views-components/dialog-forms/create-collection-dialog.ts b/src/views-components/dialog-forms/create-collection-dialog.ts index 68e6380560..d989d431fa 100644 --- a/src/views-components/dialog-forms/create-collection-dialog.ts +++ b/src/views-components/dialog-forms/create-collection-dialog.ts @@ -4,10 +4,10 @@ import { compose } from "redux"; import { reduxForm } from 'redux-form'; -import { withDialog } from "~/store/dialog/with-dialog"; -import { COLLECTION_CREATE_FORM_NAME, CollectionCreateFormDialogData } from '~/store/collections/collection-create-actions'; -import { DialogCollectionCreate } from "~/views-components/dialog-create/dialog-collection-create"; -import { createCollection } from "~/store/workbench/workbench-actions"; +import { withDialog } from "store/dialog/with-dialog"; +import { COLLECTION_CREATE_FORM_NAME, CollectionCreateFormDialogData } from 'store/collections/collection-create-actions'; +import { DialogCollectionCreate } from "views-components/dialog-create/dialog-collection-create"; +import { createCollection } from "store/workbench/workbench-actions"; export const CreateCollectionDialog = compose( withDialog(COLLECTION_CREATE_FORM_NAME), @@ -17,7 +17,13 @@ export const CreateCollectionDialog = compose( onSubmit: (data, dispatch) => { // Somehow an extra field called 'files' gets added, copy // the data object to get rid of it. - dispatch(createCollection({ ownerUuid: data.ownerUuid, name: data.name, description: data.description })); + dispatch(createCollection({ + ownerUuid: data.ownerUuid, + name: data.name, + description: data.description, + storageClassesDesired: data.storageClassesDesired, + properties: data.properties, + })); } }) )(DialogCollectionCreate);