projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
16212: Refactors PeopleSelect component used on 'Share' dialog.
[arvados.git]
/
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 6a846c4d5bd199b3cddaaa778ed4980c6ed1d270..3c8f7ebf537f4ed755ba2f380e9251a3a4f4d768 100644
(file)
--- 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 { 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 { COLLECTION_COPY_FORM_NAME } from '~/store/collections/collection-copy-actions';
import { DialogCopy } from "~/views-components/dialog-copy/dialog-copy";
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),
export const CopyCollectionDialog = compose(
withDialog(COLLECTION_COPY_FORM_NAME),
- reduxForm<Co
llectionCo
pyFormDialogData>({
+ reduxForm<CopyFormDialogData>({
form: COLLECTION_COPY_FORM_NAME,
onSubmit: (data, dispatch) => {
dispatch(copyCollection(data));
}
form: COLLECTION_COPY_FORM_NAME,
onSubmit: (data, dispatch) => {
dispatch(copyCollection(data));
}
- })
+ }),
+ pickerId(COLLECTION_COPY_FORM_NAME),
)(DialogCopy);
\ No newline at end of file
)(DialogCopy);
\ No newline at end of file