From 71794c06557ccae7e54644ad23296aafde748d51 Mon Sep 17 00:00:00 2001 From: Pawel Kowalczyk Date: Fri, 24 Aug 2018 10:22:11 +0200 Subject: [PATCH] cr Feature #13897 Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk --- src/validators/validators.tsx | 2 +- .../dialog-collection-copy.tsx} | 4 ++-- src/views-components/dialog-forms/copy-collection-dialog.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/views-components/{dialog-copy/dialog-copy.tsx => dialog-collection-copy/dialog-collection-copy.tsx} (89%) diff --git a/src/validators/validators.tsx b/src/validators/validators.tsx index fd45a3126a..95edadfdd1 100644 --- a/src/validators/validators.tsx +++ b/src/validators/validators.tsx @@ -16,6 +16,6 @@ export const COLLECTION_DESCRIPTION_VALIDATION = [maxLength(255)]; export const COLLECTION_PROJECT_VALIDATION = [require]; export const COPY_NAME_VALIDATION = [require, maxLength(255)]; -export const COPY_PROJECT_VALIDATION = [require]; +export const COPY_FILE_VALIDATION = [require]; export const MOVE_TO_VALIDATION = [require]; diff --git a/src/views-components/dialog-copy/dialog-copy.tsx b/src/views-components/dialog-collection-copy/dialog-collection-copy.tsx similarity index 89% rename from src/views-components/dialog-copy/dialog-copy.tsx rename to src/views-components/dialog-collection-copy/dialog-collection-copy.tsx index 7592bbc7cf..886301b962 100644 --- a/src/views-components/dialog-copy/dialog-copy.tsx +++ b/src/views-components/dialog-collection-copy/dialog-collection-copy.tsx @@ -7,7 +7,7 @@ import { InjectedFormProps, Field } from 'redux-form'; import { WithDialogProps } from '~/store/dialog/with-dialog'; import { FormDialog } from '~/components/form-dialog/form-dialog'; import { ProjectTreePickerField } from '~/views-components/project-tree-picker/project-tree-picker'; -import { COPY_NAME_VALIDATION, COPY_PROJECT_VALIDATION } from '~/validators/validators'; +import { COPY_NAME_VALIDATION, COPY_FILE_VALIDATION } from '~/validators/validators'; import { TextField } from "~/components/text-field/text-field"; import { CollectionCopyFormDialogData } from "~/store/collections/collection-copy-actions"; @@ -30,5 +30,5 @@ const DialogCopyFields = () => + validate={COPY_FILE_VALIDATION} /> ; diff --git a/src/views-components/dialog-forms/copy-collection-dialog.ts b/src/views-components/dialog-forms/copy-collection-dialog.ts index 6a846c4d5b..6354f969dd 100644 --- a/src/views-components/dialog-forms/copy-collection-dialog.ts +++ b/src/views-components/dialog-forms/copy-collection-dialog.ts @@ -6,7 +6,7 @@ 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 { DialogCopy } from "~/views-components/dialog-copy/dialog-copy"; +import { DialogCopy } from "~/views-components/dialog-collection-copy/dialog-collection-copy"; export const CopyCollectionDialog = compose( withDialog(COLLECTION_COPY_FORM_NAME), -- 2.39.5