Skip to content

Commit

Permalink
chore(backport release-0.8): fix(ui): hide promotion button for contr…
Browse files Browse the repository at this point in the history
…ol flow stages (#2343)

Co-authored-by: Remington Breeze <[email protected]>
  • Loading branch information
akuitybot and rbreeze authored Jul 24, 2024
1 parent 7f8bfed commit 46d2cf0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ui/src/features/project/pipelines/nodes/stage-node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,14 @@ export const StageNode = ({
</div>
{!approving && (
<>
<Nodule
begin={true}
nodeHeight={height}
onClick={() => onPromoteClick(FreightTimelineAction.Promote)}
selected={action === FreightTimelineAction.Promote}
/>
{stage.spec?.promotionMechanisms && (
<Nodule
begin={true}
nodeHeight={height}
onClick={() => onPromoteClick(FreightTimelineAction.Promote)}
selected={action === FreightTimelineAction.Promote}
/>
)}
{!hasNoSubscribers && (
<Nodule
nodeHeight={height}
Expand Down

0 comments on commit 46d2cf0

Please sign in to comment.