Skip to content

Commit

Permalink
upcoming: [M3-7901] - Update navigation items for Placement Groups (l…
Browse files Browse the repository at this point in the history
…inode#10340)

* upcoming: [M3-7901] - Update navigation items for Placement Groups

* Add hide property to placement group in AddNewMenu component

* Add changeset

* Update PG description in AddNewMenu
  • Loading branch information
carrillo-erik authored Apr 4, 2024
1 parent c76351e commit 6479b00
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Update navigation and add new menu items for Placement Groups ([#10340](https://github.com/linode/manager/pull/10340))
16 changes: 8 additions & 8 deletions packages/manager/src/components/PrimaryNav/PrimaryNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,6 @@ export const PrimaryNav = (props: PrimaryNavProps) => {
href: '/linodes',
icon: <Linode />,
},
{
betaChipClassName: 'beta-chip-placement-groups',
display: 'Placement Groups',
hide: !flags.placementGroups?.enabled,
href: '/placement-groups',
icon: <PlacementGroups />,
isBeta: flags.placementGroups?.beta,
},
{
display: 'Volumes',
href: '/volumes',
Expand Down Expand Up @@ -250,6 +242,14 @@ export const PrimaryNav = (props: PrimaryNavProps) => {
href: '/images',
icon: <Image />,
},
{
betaChipClassName: 'beta-chip-placement-groups',
display: 'Placement Groups',
hide: !flags.placementGroups?.enabled,
href: '/placement-groups',
icon: <PlacementGroups />,
isBeta: flags.placementGroups?.beta,
},
],
[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import LinodeIcon from 'src/assets/icons/entityIcons/linode.svg';
import LoadBalancerIcon from 'src/assets/icons/entityIcons/loadbalancer.svg';
import NodebalancerIcon from 'src/assets/icons/entityIcons/nodebalancer.svg';
import OneClickIcon from 'src/assets/icons/entityIcons/oneclick.svg';
import PlacementGroupsIcon from 'src/assets/icons/entityIcons/placement-groups.svg';
import VolumeIcon from 'src/assets/icons/entityIcons/volume.svg';
import VPCIcon from 'src/assets/icons/entityIcons/vpc.svg';
import { Button } from 'src/components/Button/Button';
Expand Down Expand Up @@ -110,6 +111,13 @@ export const AddNewMenu = () => {
icon: FirewallIcon,
link: '/firewalls/create',
},
{
description: "Control your Linodes' physical placement",
entity: 'Placement Groups',
hide: !flags.placementGroups?.enabled,
icon: PlacementGroupsIcon,
link: '/placement-groups/create',
},
{
description: 'Manage your DNS records',
entity: 'Domain',
Expand Down

0 comments on commit 6479b00

Please sign in to comment.