Skip to content

Commit 482f14f

Browse files
committed
variable rename
1 parent 3ca0173 commit 482f14f

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

src/components/workflowEditor/Workflow.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface WorkflowProps
6060
isJobView?: boolean
6161
envList?: any[]
6262
filteredCIPipelines?: any[]
63-
addNewBlocked?: boolean
63+
addNewPipelineBlocked?: boolean
6464
}
6565

6666
interface WorkflowState {
@@ -254,7 +254,7 @@ export class Workflow extends Component<WorkflowProps, WorkflowState> {
254254
this.props.handleCDSelect(this.props.id, node.id, PipelineType.WEBHOOK, node.id, true)
255255
}}
256256
hideWebhookTippy={this.props.hideWebhookTippy}
257-
addNewBlocked={this.props.addNewBlocked}
257+
addNewPipelineBlocked={this.props.addNewPipelineBlocked}
258258
/>
259259
)
260260
}
@@ -330,7 +330,7 @@ export class Workflow extends Component<WorkflowProps, WorkflowState> {
330330
showPluginWarning={node.showPluginWarning}
331331
envList={this.props.envList}
332332
filteredCIPipelines={this.props.filteredCIPipelines}
333-
addNewBlocked={this.props.addNewBlocked}
333+
addNewPipelineBlocked={this.props.addNewPipelineBlocked}
334334
/>
335335
)
336336
}
@@ -365,7 +365,7 @@ export class Workflow extends Component<WorkflowProps, WorkflowState> {
365365
deploymentAppDeleteRequest={node.deploymentAppDeleteRequest}
366366
match={this.props.match}
367367
isVirtualEnvironment={node.isVirtualEnvironment}
368-
addNewBlocked={this.props.addNewBlocked}
368+
addNewPipelineBlocked={this.props.addNewPipelineBlocked}
369369
/>
370370
)
371371
}

src/components/workflowEditor/nodes/CDNode.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class CDNode extends Component<CDNodeProps, CDNodeState> {
5252
}
5353

5454
onClickAddNode = (event: any) => {
55-
if (this.props.addNewBlocked) {
55+
if (this.props.addNewPipelineBlocked) {
5656
return
5757
}
5858
if (this.props.deploymentAppDeleteRequest) {
@@ -146,14 +146,14 @@ export class CDNode extends Component<CDNodeProps, CDNodeState> {
146146
placement="top"
147147
content={
148148
<span className="add-cd-btn-tippy">
149-
{this.props.addNewBlocked
149+
{this.props.addNewPipelineBlocked
150150
? 'Not allowed with env filter'
151151
: 'Add deployment pipeline'}
152152
</span>
153153
}
154154
>
155155
<Add
156-
className={`icon-dim-18 fcb-5 ${this.props.addNewBlocked ? 'dc__disabled' : ''}`}
156+
className={`icon-dim-18 fcb-5 ${this.props.addNewPipelineBlocked ? 'dc__disabled' : ''}`}
157157
onClick={this.onClickAddNode}
158158
/>
159159
</Tippy>

src/components/workflowEditor/nodes/CINode.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export interface CINodeProps {
3131
showPluginWarning?: boolean
3232
envList?: any[]
3333
filteredCIPipelines?: any[]
34-
addNewBlocked?: boolean
34+
addNewPipelineBlocked?: boolean
3535
}
3636

3737
export class CINode extends Component<CINodeProps> {
3838
onClickAddNode = (event: any) => {
39-
if (this.props.addNewBlocked) {
39+
if (this.props.addNewPipelineBlocked) {
4040
return
4141
}
4242
event.stopPropagation()
@@ -141,14 +141,14 @@ export class CINode extends Component<CINodeProps> {
141141
placement="top"
142142
content={
143143
<span style={{ display: 'block', width: '145px' }}>
144-
{this.props.addNewBlocked
144+
{this.props.addNewPipelineBlocked
145145
? 'Not allowed with env filter'
146146
: 'Add deployment pipeline'}
147147
</span>
148148
}
149149
>
150150
<Add
151-
className={`icon-dim-18 fcb-5 ${this.props.addNewBlocked ? 'dc__disabled' : ''}`}
151+
className={`icon-dim-18 fcb-5 ${this.props.addNewPipelineBlocked ? 'dc__disabled' : ''}`}
152152
onClick={this.onClickAddNode}
153153
/>
154154
</Tippy>

src/components/workflowEditor/nodes/WebhookNode.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { ReactComponent as Add } from '../../../assets/icons/ic-add.svg'
66
import { ConditionalWrap } from '../../common'
77
import { WebhookNodeProps } from '../types'
88

9-
export function WebhookNode({ x, y, width, height, id, to, configDiffView, toggleCDMenu, hideWebhookTippy, addNewBlocked }: WebhookNodeProps) {
9+
export function WebhookNode({ x, y, width, height, id, to, configDiffView, toggleCDMenu, hideWebhookTippy, addNewPipelineBlocked }: WebhookNodeProps) {
1010
const addNewCD = (event): void => {
11-
if (addNewBlocked) {
11+
if (addNewPipelineBlocked) {
1212
return
1313
}
1414
event.stopPropagation()
@@ -47,11 +47,11 @@ export function WebhookNode({ x, y, width, height, id, to, configDiffView, toggl
4747
placement="top"
4848
content={
4949
<span style={{ display: 'block', width: '145px' }}>
50-
{addNewBlocked ? 'Not allowed with env filter' : 'Add deployment pipeline'}
50+
{addNewPipelineBlocked ? 'Not allowed with env filter' : 'Add deployment pipeline'}
5151
</span>
5252
}
5353
>
54-
<Add className={`icon-dim-18 fcb-5 ${addNewBlocked ? 'dc__disabled' : ''}`} onClick={addNewCD} />
54+
<Add className={`icon-dim-18 fcb-5 ${addNewPipelineBlocked ? 'dc__disabled' : ''}`} onClick={addNewCD} />
5555
</Tippy>
5656
</button>
5757
)}

src/components/workflowEditor/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export interface CDNodeProps{
9292
match: RouteComponentProps['match']
9393
description: string
9494
isVirtualEnvironment?: boolean
95-
addNewBlocked?: boolean
95+
addNewPipelineBlocked?: boolean
9696
}
9797

9898
export interface WebhookNodeProps {
@@ -105,7 +105,7 @@ export interface WebhookNodeProps {
105105
configDiffView?: boolean
106106
toggleCDMenu?: () => void
107107
hideWebhookTippy?: () => void
108-
addNewBlocked?: boolean
108+
addNewPipelineBlocked?: boolean
109109
}
110110

111111
export interface WebhookTippyType {

src/components/workflowEditor/workflowEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ class WorkflowEdit extends Component<WorkflowEditProps, WorkflowEditState> {
563563
isJobView={this.props.isJobView}
564564
envList={this.props.envList}
565565
filteredCIPipelines={this.state.filteredCIPipelines}
566-
addNewBlocked={!!this.props.filteredEnvIds}
566+
addNewPipelineBlocked={!!this.props.filteredEnvIds}
567567
/>
568568
)
569569
})

0 commit comments

Comments
 (0)