Skip to content

Commit

Permalink
feat(ui): hide freight actions menu when in promote/approve mode (#1990)
Browse files Browse the repository at this point in the history
Signed-off-by: Remington Breeze <[email protected]>
  • Loading branch information
rbreeze authored May 10, 2024
1 parent 825fc27 commit def79fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/src/features/freightline/freightline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export const Freightline = ({
state.select(FreightlineAction.ManualApproval, undefined, id);
}}
refetchFreight={refetchFreight}
hide={!!state.action}
/>
<StageIndicators
stages={stagesPerFreight[id] || []}
Expand Down
8 changes: 7 additions & 1 deletion ui/src/features/project/pipelines/freight-action-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,20 @@ import { UpdateFreightAliasModal } from './update-freight-alias-modal';
export const FreightActionMenu = ({
freight,
approveAction,
refetchFreight
refetchFreight,
hide
}: {
freight: Freight;
approveAction: () => void;
refetchFreight: () => void;
hide?: boolean;
}) => {
const { show } = useModal();

if (hide) {
return <></>;
}

return (
<Dropdown
className='absolute top-2 right-2 pl-2'
Expand Down

0 comments on commit def79fe

Please sign in to comment.