diff --git a/app/layouts/SystemLayout.tsx b/app/layouts/SystemLayout.tsx index 09e062b2f..fc60e679a 100644 --- a/app/layouts/SystemLayout.tsx +++ b/app/layouts/SystemLayout.tsx @@ -65,7 +65,7 @@ export default function SystemLayout() { const systemLinks = [ { value: 'Silos', path: pb.silos() }, { value: 'Utilization', path: pb.systemUtilization() }, - { value: 'Inventory', path: pb.sledInventory() }, + { value: 'Inventory', path: pb.inventory() }, ] // filter out the entry for the path we're currently on .filter((i) => i.path !== pathname) diff --git a/app/routes.tsx b/app/routes.tsx index 0a5690202..9e6196138 100644 --- a/app/routes.tsx +++ b/app/routes.tsx @@ -147,6 +147,7 @@ export const routes = createRoutesFromElements( loader={InventoryPage.loader} handle={{ crumb: 'Inventory' }} > + } loader={SledsTab.loader} /> } loader={SledsTab.loader} /> } loader={DisksTab.loader} /> @@ -156,7 +157,11 @@ export const routes = createRoutesFromElements( loader={SledPage.loader} handle={{ crumb: 'Sleds' }} > - } /> + } + loader={SledInstancesTab.loader} + /> } diff --git a/app/util/path-builder.spec.ts b/app/util/path-builder.spec.ts index 86563bc90..d61bcca8a 100644 --- a/app/util/path-builder.spec.ts +++ b/app/util/path-builder.spec.ts @@ -37,6 +37,7 @@ test('path builder', () => { "instancePage": "/projects/p/instances/i/storage", "instanceStorage": "/projects/p/instances/i/storage", "instances": "/projects/p/instances", + "inventory": "/system/inventory", "nics": "/projects/p/instances/i/network-interfaces", "profile": "/settings/profile", "project": "/projects/p", diff --git a/app/util/path-builder.ts b/app/util/path-builder.ts index 87ea4161d..bf4b40509 100644 --- a/app/util/path-builder.ts +++ b/app/util/path-builder.ts @@ -80,6 +80,7 @@ export const pb = { systemNetworking: () => '/system/networking', systemSettings: () => '/system/settings', + inventory: () => '/system/inventory', rackInventory: () => '/system/inventory/racks', sledInventory: () => '/system/inventory/sleds', diskInventory: () => '/system/inventory/disks',