File tree Expand file tree Collapse file tree 2 files changed +24
-20
lines changed
src/widgets/dialogs/ManageStage/components/fields/QualityGates
components/QualityGateRow Expand file tree Collapse file tree 2 files changed +24
-20
lines changed Original file line number Diff line number Diff line change @@ -275,25 +275,29 @@ export const QualityGateRow = ({
275
275
options = { availableQualityGateTypeSelectOptions }
276
276
/>
277
277
</ Grid >
278
- < Grid item xs = { 3 } >
279
- < FormTextField
280
- { ...register (
281
- // @ts -ignore
282
- createQualityGateStepNameFieldName ( currentQualityGate . id ) ,
283
- {
284
- required : 'Enter step name.' ,
285
- onChange : handleChangeQualityGateStepName ,
286
- }
287
- ) }
288
- label = { 'Step name' }
289
- title = {
290
- 'Name the deployment step within the stage to distinguish different phases of the deployment process.'
291
- }
292
- placeholder = { 'Enter step name' }
293
- control = { control }
294
- errors = { errors }
295
- />
296
- </ Grid >
278
+ { currentQualityGateTypeFieldValue &&
279
+ currentQualityGateTypeFieldValue !== QUALITY_GATE_TYPES . MANUAL && (
280
+ < Grid item xs = { 3 } >
281
+ < FormTextField
282
+ { ...register (
283
+ // @ts -ignore
284
+ createQualityGateStepNameFieldName ( currentQualityGate . id ) ,
285
+ {
286
+ required : 'Enter step name.' ,
287
+ onChange : handleChangeQualityGateStepName ,
288
+ }
289
+ ) }
290
+ label = { 'Step name' }
291
+ title = {
292
+ 'Name the deployment step within the stage to distinguish different phases of the deployment process.'
293
+ }
294
+ placeholder = { 'Enter step name' }
295
+ control = { control }
296
+ errors = { errors }
297
+ />
298
+ </ Grid >
299
+ ) }
300
+
297
301
{ ! ! autotestsWithBranchesOptions . length &&
298
302
currentQualityGateTypeFieldValue === QUALITY_GATE_TYPES . AUTOTESTS ? (
299
303
< >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { v4 as uuidv4 } from 'uuid';
3
3
export const DEFAULT_QUALITY_GATE = {
4
4
id : uuidv4 ( ) ,
5
5
qualityGateType : 'manual' ,
6
- stepName : '' ,
6
+ stepName : 'approve ' ,
7
7
autotestName : null ,
8
8
branchName : null ,
9
9
} ;
You can’t perform that action at this time.
0 commit comments