Skip to content

Commit

Permalink
chore(topology): hide action menu if no actions are available
Browse files Browse the repository at this point in the history
  • Loading branch information
Thuan Vo committed Mar 21, 2023
1 parent 6194321 commit d2a12d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/Topology/Shared/Entity/EntityDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ export const EntityDetails: React.FC<EntityDetailsProps> = ({
badge={nodeTypeToAbbr(data.nodeType)}
badgeTooltipContent={data.nodeType}
status={isTarget ? getStatusTargetNode(data) : []}
actionDropdown={<ActionDropdown actions={_actions} className={'entity-overview__action-menu'} />}
actionDropdown={
_actions.length ? <ActionDropdown actions={_actions} className={'entity-overview__action-menu'} /> : null
}
/>
<Divider />
<Tabs
Expand Down

0 comments on commit d2a12d5

Please sign in to comment.