@@ -9,7 +9,7 @@ import { FormCheckbox } from '../../../../../../../providers/Form/components/For
9
9
import { FormControlLabelWithTooltip } from '../../../../../../../providers/Form/components/FormControlLabelWithTooltip' ;
10
10
import { FormSelect } from '../../../../../../../providers/Form/components/FormSelect' ;
11
11
import { FormTextField } from '../../../../../../../providers/Form/components/FormTextField' ;
12
- import { FieldEvent , FieldEventTarget , FORM_MODES } from '../../../../../../../types/forms' ;
12
+ import { FieldEvent , FieldEventTarget } from '../../../../../../../types/forms' ;
13
13
import { CREATE_EDIT_CD_PIPELINE_DIALOG_NAME } from '../../../../../constants' ;
14
14
import { CDPIPELINE_FORM_NAMES } from '../../../../../names' ;
15
15
import {
@@ -36,7 +36,7 @@ export const ApplicationRow = ({ application }: ApplicationRowProps) => {
36
36
} = useFormContext < CreateEditCDPipelineFormValues > ( ) ;
37
37
38
38
const {
39
- forwardedProps : { CDPipelineData, mode } ,
39
+ forwardedProps : { CDPipelineData } ,
40
40
} = useSpecificDialogContext < CreateEditCDPipelineDialogForwardedProps > (
41
41
CREATE_EDIT_CD_PIPELINE_DIALOG_NAME
42
42
) ;
@@ -201,15 +201,9 @@ export const ApplicationRow = ({ application }: ApplicationRowProps) => {
201
201
}
202
202
) }
203
203
defaultValue = { CDPipelineData ?. spec ?. applicationsToPromote ?. includes ( appName ) }
204
- label = {
205
- < FormControlLabelWithTooltip
206
- label = { 'Promote in pipeline' }
207
- disabled = { mode === FORM_MODES . EDIT }
208
- />
209
- }
204
+ label = { < FormControlLabelWithTooltip label = { 'Promote in pipeline' } /> }
210
205
control = { control }
211
206
errors = { errors }
212
- disabled = { mode === FORM_MODES . EDIT }
213
207
/>
214
208
</ Grid >
215
209
< Grid
0 commit comments