paths changed
authorPawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
Fri, 17 Aug 2018 10:05:16 +0000 (12:05 +0200)
committerPawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
Fri, 17 Aug 2018 10:05:16 +0000 (12:05 +0200)
Feature #13902

Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>

src/components/move-to-dialog/move-to-dialog.tsx
src/validators/create-collection/create-collection-validator.tsx [deleted file]
src/validators/create-project/create-project-validator.tsx [deleted file]
src/validators/move-to/move-to-validator.tsx [deleted file]
src/validators/validators.tsx

index f38c5424e62b806153a4eb612b150f50620e9071..51f5fbf6df45196abf5851b3613e8f76fc511714 100644 (file)
@@ -6,9 +6,9 @@ import * as React from "react";
 import { Field, InjectedFormProps, WrappedFieldProps } from "redux-form";
 import { Dialog, DialogTitle, DialogContent, DialogActions, Button, CircularProgress } from "@material-ui/core";
 
-import { WithDialogProps } from "../../store/dialog/with-dialog";
-import { ProjectTreePicker } from "../../views-components/project-tree-picker/project-tree-picker";
-import { MOVE_TO_VALIDATION } from "../../validators/move-to/move-to-validator";
+import { WithDialogProps } from "~/store/dialog/with-dialog";
+import { ProjectTreePicker } from "~/views-components/project-tree-picker/project-tree-picker";
+import { MOVE_TO_VALIDATION } from "~/validators/validators";
 
 export const MoveTo = (props: WithDialogProps<string> & InjectedFormProps<{ name: string }>) =>
     <form>
diff --git a/src/validators/create-collection/create-collection-validator.tsx b/src/validators/create-collection/create-collection-validator.tsx
deleted file mode 100644 (file)
index 1ada691..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// Copyright (C) The Arvados Authors. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0
-
-import { require } from '../require';
-import { maxLength } from '../max-length';
-
-export const COLLECTION_NAME_VALIDATION = [require, maxLength(255)];
-export const COLLECTION_DESCRIPTION_VALIDATION = [maxLength(255)];
-export const COLLECTION_PROJECT_VALIDATION = [require];
\ No newline at end of file
diff --git a/src/validators/create-project/create-project-validator.tsx b/src/validators/create-project/create-project-validator.tsx
deleted file mode 100644 (file)
index 928efdd..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// Copyright (C) The Arvados Authors. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0
-
-import { require } from '../require';
-import { maxLength } from '../max-length';
-
-export const PROJECT_NAME_VALIDATION = [require, maxLength(255)];
-export const PROJECT_DESCRIPTION_VALIDATION = [maxLength(255)];
diff --git a/src/validators/move-to/move-to-validator.tsx b/src/validators/move-to/move-to-validator.tsx
deleted file mode 100644 (file)
index eb30df3..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// Copyright (C) The Arvados Authors. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0
-
-import { require } from '../require';
-
-export const MOVE_TO_VALIDATION = [require];
\ No newline at end of file
index edd07822942ace10ac40ae68e79b9222422dbe55..389e8cdfd140cd32b6e372a5bee3c0352680e8f4 100644 (file)
@@ -13,4 +13,6 @@ export const PROJECT_DESCRIPTION_VALIDATION = [maxLength(255)];
 
 export const COLLECTION_NAME_VALIDATION = [require, maxLength(255)];
 export const COLLECTION_DESCRIPTION_VALIDATION = [maxLength(255)];
-export const COLLECTION_PROJECT_VALIDATION = [require];
\ No newline at end of file
+export const COLLECTION_PROJECT_VALIDATION = [require];
+
+export const MOVE_TO_VALIDATION = [require];
\ No newline at end of file