From 5da46a24f0381fb708e8b06f8daba6c9df6cd274 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Mon, 20 Feb 2023 11:54:43 -0500 Subject: [PATCH] 19908: Add optional required flag for project input, make not required for advanced search Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/views/run-process-panel/inputs/project-input.tsx | 5 +++-- src/views/run-process-panel/run-process-basic-form.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/run-process-panel/inputs/project-input.tsx b/src/views/run-process-panel/inputs/project-input.tsx index ef6d08f4..97028fc9 100644 --- a/src/views/run-process-panel/inputs/project-input.tsx +++ b/src/views/run-process-panel/inputs/project-input.tsx @@ -24,19 +24,20 @@ export type ProjectCommandInputParameter = GenericCommandInputParameter (value === undefined); export interface ProjectInputProps { + required?: boolean; input: ProjectCommandInputParameter; options?: { showOnlyOwned: boolean, showOnlyWritable: boolean }; } type DialogContentCssRules = 'root' | 'pickerWrapper'; -export const ProjectInput = ({ input, options }: ProjectInputProps) => +export const ProjectInput = ({ required, input, options }: ProjectInputProps) => ; diff --git a/src/views/run-process-panel/run-process-basic-form.tsx b/src/views/run-process-panel/run-process-basic-form.tsx index 32a126a4..a6f7a706 100644 --- a/src/views/run-process-panel/run-process-basic-form.tsx +++ b/src/views/run-process-panel/run-process-basic-form.tsx @@ -40,7 +40,7 @@ export const RunProcessBasicForm = label="Optional description of this workflow run" /> -