Skip to content

Commit

Permalink
Hub EE Create - hide description (#3041)
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel authored Aug 22, 2024
1 parent 5734f86 commit 9d2ef1f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frontend/hub/execution-environments/ExecutionEnvironmentForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router-dom';
import {
PageFormSubmitHandler,
PageFormTextArea,
PageFormTextInput,
PageHeader,
PageLayout,
Expand Down Expand Up @@ -227,6 +226,14 @@ function ExecutionEnvironmentForm(props: { mode: 'add' | 'edit' }) {
/>
)}

{!isNew && (
<PageFormTextInput<ExecutionEnvironmentFormProps>
name="description"
label={t('Description')}
placeholder={t('Enter a description')}
/>
)}

{isRemote && (
<>
<PageFormTextInput<ExecutionEnvironmentFormProps>
Expand All @@ -253,13 +260,6 @@ function ExecutionEnvironmentForm(props: { mode: 'add' | 'edit' }) {
<TagsSelector tags={tagsToExclude} setTags={setTagsToExclude} mode={'exclude'} />
</>
)}

<PageFormTextArea<ExecutionEnvironmentFormProps>
name="description"
label={t('Description')}
placeholder={t('Enter a description')}
isDisabled={mode === 'add'}
/>
</HubPageForm>
)}
</PageLayout>
Expand Down

0 comments on commit 9d2ef1f

Please sign in to comment.