Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>
dispatch(progressIndicatorActions.STOP_WORKING(COLLECTION_PARTIAL_COPY_TO_SEPARATE_COLLECTIONS));
} catch (e) {
const error = getCommonResourceServiceError(e);
- console.log(e, error);
if (error === CommonResourceServiceError.UNIQUE_NAME_VIOLATION) {
dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Collection from one or more files already exists', hideDuration: 2000, kind: SnackbarKind.ERROR }));
} else if (error === CommonResourceServiceError.UNKNOWN) {
reduxForm<CollectionPartialCopyToNewCollectionFormData>({
form: COLLECTION_PARTIAL_COPY_FORM_NAME,
onSubmit: (data, dispatch, dialog) => {
- console.log(dialog.data);
dispatch(copyCollectionPartialToNewCollection(dialog.data, data));
}
}),