X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/23962688961f81c0fbdb20870096024ded86a0b5..a1310aae9f24935feae463542e9bfde298a5d9e4:/src/views-components/dialog-create/dialog-collection-create-selected.tsx diff --git a/src/views-components/dialog-create/dialog-collection-create-selected.tsx b/src/views-components/dialog-create/dialog-collection-create-selected.tsx index 591dd2cf..ad684d78 100644 --- a/src/views-components/dialog-create/dialog-collection-create-selected.tsx +++ b/src/views-components/dialog-create/dialog-collection-create-selected.tsx @@ -3,11 +3,12 @@ // SPDX-License-Identifier: AGPL-3.0 import * as React from "react"; -import { InjectedFormProps, Field } from "redux-form"; +import { InjectedFormProps, Field, WrappedFieldProps } from "redux-form"; import { Dialog, DialogTitle, DialogContent, DialogActions, Button, CircularProgress } from "@material-ui/core"; -import { WithDialogProps } from "../../store/dialog/with-dialog"; -import { TextField } from "../../components/text-field/text-field"; -import { COLLECTION_NAME_VALIDATION, COLLECTION_DESCRIPTION_VALIDATION } from "../../validators/create-project/create-project-validator"; +import { WithDialogProps } from "~/store/dialog/with-dialog"; +import { TextField } from "~/components/text-field/text-field"; +import { COLLECTION_NAME_VALIDATION, COLLECTION_DESCRIPTION_VALIDATION, COLLECTION_PROJECT_VALIDATION } from "~/validators/validators"; +import { ProjectTreePicker } from "../project-tree-picker/project-tree-picker"; export const DialogCollectionCreateWithSelected = (props: WithDialogProps & InjectedFormProps<{ name: string }>) =>
@@ -28,7 +29,10 @@ export const DialogCollectionCreateWithSelected = (props: WithDialogProps -
TREE
+ - ; \ No newline at end of file + ; + +const Picker = (props: WrappedFieldProps) => +
+ props.input.onChange(projectUuid)} /> +
;