From 73dc3ba5b1cc71fd852f0beeb8a85aa56ff438ce Mon Sep 17 00:00:00 2001 From: Gage Krumbach Date: Fri, 2 Jun 2023 11:33:43 -0500 Subject: [PATCH] navigate on new run form (#1321) * make project name unchangeable * linting errors --- .../pipelines/content/createRun/RunForm.tsx | 16 ++++++---------- .../pipelines/content/createRun/const.ts | 2 -- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/frontend/src/concepts/pipelines/content/createRun/RunForm.tsx b/frontend/src/concepts/pipelines/content/createRun/RunForm.tsx index 52c539d5cf..c1a98887e5 100644 --- a/frontend/src/concepts/pipelines/content/createRun/RunForm.tsx +++ b/frontend/src/concepts/pipelines/content/createRun/RunForm.tsx @@ -1,11 +1,11 @@ import * as React from 'react'; -import { Form, FormSection } from '@patternfly/react-core'; +import { Form, FormGroup, FormSection, Text } from '@patternfly/react-core'; import NameDescriptionField from '~/concepts/k8s/NameDescriptionField'; -import ProjectSelector from '~/concepts/projects/ProjectSelector'; import { RunFormData } from '~/concepts/pipelines/content/createRun/types'; import { ValueOf } from '~/typeHelpers'; import RunTypeSection from '~/concepts/pipelines/content/createRun/contentSections/RunTypeSection'; import ParamsSection from '~/concepts/pipelines/content/createRun/contentSections/ParamsSection'; +import { getProjectDisplayName } from '~/pages/projects/utils'; import PipelineSection from './contentSections/PipelineSection'; import { CreateRunPageSections, runPageSectionTitles } from './const'; @@ -21,14 +21,10 @@ const RunForm: React.FC = ({ data, onValueChange }) => ( e.preventDefault(); }} > - - onValueChange('project', project)} - namespace={data.project.metadata.name} - /> + + + {getProjectDisplayName(data.project)} + = { - [CreateRunPageSections.PROJECT]: 'Project', [CreateRunPageSections.NAME_DESC]: 'Name and description', [CreateRunPageSections.PIPELINE]: 'Pipeline', // [CreateRunPageSections.EXPERIMENT]: 'Experiment',