Skip to content

Commit

Permalink
Merge pull request #64 from OpsMx/Bugfix/OP-16410
Browse files Browse the repository at this point in the history
Bugfix/OP-16410-Issue resolved regarding Pipeline builder-pipeline action dropdown
  • Loading branch information
siddhu-opsmx authored Jun 7, 2023
2 parents 8571172 + 5636069 commit 5b96042
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface IPipelineConfigActionsProps {
}

export function PipelineConfigActions(props: IPipelineConfigActionsProps) {
const closeDropdown = () => document.body.click();
const {
pipeline,
renamePipeline,
Expand All @@ -36,7 +37,7 @@ export function PipelineConfigActions(props: IPipelineConfigActionsProps) {
<Dropdown.Toggle className="btn btn-sm dropdown-toggle">
{pipeline.strategy === true ? 'Strategy' : 'Pipeline'} Actions
</Dropdown.Toggle>
<Dropdown.Menu className="dropdown-menu">
<Dropdown.Menu className="dropdown-menu" onClick={closeDropdown}>
{!pipeline.locked && <PipelineConfigAction name="Rename" action={renamePipeline} />}
{!pipeline.locked && <PipelineConfigAction name="Delete" action={deletePipeline} />}
{!pipeline.locked && pipeline.disabled && <PipelineConfigAction name="Enable" action={enablePipeline} />}
Expand Down

0 comments on commit 5b96042

Please sign in to comment.