Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>
const require: any = (value?: ProjectResource) => (value === undefined);
export interface ProjectInputProps {
const require: any = (value?: ProjectResource) => (value === undefined);
export interface ProjectInputProps {
input: ProjectCommandInputParameter;
options?: { showOnlyOwned: boolean, showOnlyWritable: boolean };
}
type DialogContentCssRules = 'root' | 'pickerWrapper';
input: ProjectCommandInputParameter;
options?: { showOnlyOwned: boolean, showOnlyWritable: boolean };
}
type DialogContentCssRules = 'root' | 'pickerWrapper';
-export const ProjectInput = ({ input, options }: ProjectInputProps) =>
+export const ProjectInput = ({ required, input, options }: ProjectInputProps) =>
<Field
name={input.id}
commandInput={input}
component={ProjectInputComponent as any}
format={format}
<Field
name={input.id}
commandInput={input}
component={ProjectInputComponent as any}
format={format}
+ validate={required ? require : undefined}
label="Optional description of this workflow run" />
</Grid>
<Grid item xs={12} md={6}>
label="Optional description of this workflow run" />
</Grid>
<Grid item xs={12} md={6}>
+ <ProjectInput required input={{
id: "owner",
label: "Project where the workflow will run"
} as ProjectCommandInputParameter}
id: "owner",
label: "Project where the workflow will run"
} as ProjectCommandInputParameter}