X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c29de730b2cf8582667e21bc985530a804797186..aa2fde93e604c3f04b3a228d68b9627d79e6ba76:/src/validators/validators.tsx diff --git a/src/validators/validators.tsx b/src/validators/validators.tsx index 605d051c78..81fed2cccc 100644 --- a/src/validators/validators.tsx +++ b/src/validators/validators.tsx @@ -6,7 +6,7 @@ import { require } from './require'; import { maxLength } from './max-length'; import { isRsaKey } from './is-rsa-key'; import { isRemoteHost } from "./is-remote-host"; -import { validName, validNameAllowSlash } from "./valid-name"; +import { validFilePath, validName, validNameAllowSlash } from "./valid-name"; export const TAG_KEY_VALIDATION = [require, maxLength(255)]; export const TAG_VALUE_VALIDATION = [require, maxLength(255)]; @@ -21,6 +21,7 @@ export const COLLECTION_PROJECT_VALIDATION = [require]; export const COPY_NAME_VALIDATION = [require, maxLength(255)]; export const COPY_FILE_VALIDATION = [require]; +export const RENAME_FILE_VALIDATION = [require, validFilePath]; export const MOVE_TO_VALIDATION = [require]; @@ -38,3 +39,5 @@ export const SSH_KEY_NAME_VALIDATION = [require, maxLength(255)]; export const SITE_MANAGER_REMOTE_HOST_VALIDATION = [require, isRemoteHost, maxLength(255)]; export const MY_ACCOUNT_VALIDATION = [require]; + +export const CHOOSE_VM_VALIDATION = [require];