Skip to content

Commit

Permalink
Bugfix/OP-16410-Issue resolved regarding Pipeline builder-pipeline ac…
Browse files Browse the repository at this point in the history
…tion dropdown
  • Loading branch information
siddhu-opsmx committed Jun 7, 2023
1 parent 8571172 commit 5636069
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 5636069

Please sign in to comment.