X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9c15617f293ab41ea8b8e2962ecd1d109b80a026..a8187ba6c1780cef4de40729cbd3875a9d3dafc4:/src/views/run-process-panel/inputs/generic-input.tsx diff --git a/src/views/run-process-panel/inputs/generic-input.tsx b/src/views/run-process-panel/inputs/generic-input.tsx index 8eb1ca3e29..066bf2b855 100644 --- a/src/views/run-process-panel/inputs/generic-input.tsx +++ b/src/views/run-process-panel/inputs/generic-input.tsx @@ -4,8 +4,8 @@ import * as React from 'react'; import { WrappedFieldProps } from 'redux-form'; -import { FormGroup, FormLabel, Input, FormHelperText } from '@material-ui/core'; -import { GenericCommandInputParameter, getInputLabel } from '../../../models/workflow'; +import { FormGroup, FormLabel, FormHelperText } from '@material-ui/core'; +import { GenericCommandInputParameter, getInputLabel, isRequiredInput } from '~/models/workflow'; export type GenericInputProps = WrappedFieldProps & { commandInput: GenericCommandInputParameter; @@ -16,9 +16,14 @@ type GenericInputContainerProps = GenericInputProps & { }; export const GenericInput = ({ component: Component, ...props }: GenericInputContainerProps) => { return - {getInputLabel(props.commandInput)} + + {getInputLabel(props.commandInput)} + - + { props.meta.touched && props.meta.error ? props.meta.error