Skip to content

Commit

Permalink
Enable Strategy Fields only hiding Template fields (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
NagendraOpsmx authored May 24, 2023
1 parent a462de7 commit 8571172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/pipeline/create/CreatePipelineModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export class CreatePipelineModal extends React.Component<ICreatePipelineModalPro
selectedTemplate={this.state.command.template}
/>
)}
{!this.state.useManagedTemplate && (
{!this.state.useManagedTemplate && !this.state.command.strategy && (
<div className="form-group clearfix">
{this.state.templates.length === 0 && <div className="col-md-3 sm-label-right">Source URL</div>}
<div className={this.state.templates.length ? 'col-md-7 col-md-offset-3' : 'col-md-7'}>
Expand All @@ -533,7 +533,7 @@ export class CreatePipelineModal extends React.Component<ICreatePipelineModalPro
loadingError={this.state.loadingTemplateFromSourceError}
template={this.state.command.template || preselectedTemplate}
/>
{!preselectedTemplate && (
{!preselectedTemplate && !this.state.command.strategy && (
<div className="form-group clearfix">
<div className="col-md-12">
<em>
Expand Down

0 comments on commit 8571172

Please sign in to comment.