diff --git a/src/frontend/src/pages/part/CategoryDetail.tsx b/src/frontend/src/pages/part/CategoryDetail.tsx index 83fd0ce3bc33..a8fa7a9cb9d6 100644 --- a/src/frontend/src/pages/part/CategoryDetail.tsx +++ b/src/frontend/src/pages/part/CategoryDetail.tsx @@ -4,6 +4,7 @@ import { IconCategory, IconInfoCircle, IconListDetails, + IconPackages, IconSitemap } from '@tabler/icons-react'; import { useMemo, useState } from 'react'; @@ -40,6 +41,7 @@ import { useUserState } from '../../states/UserState'; import ParametricPartTable from '../../tables/part/ParametricPartTable'; import { PartCategoryTable } from '../../tables/part/PartCategoryTable'; import { PartListTable } from '../../tables/part/PartTable'; +import { StockItemTable } from '../../tables/stock/StockItemTable'; /** * Detail view for a single PartCategory instance. @@ -252,6 +254,12 @@ export default function CategoryDetail() { icon: , content: detailsPanel }, + { + name: 'subcategories', + label: t`Subcategories`, + icon: , + content: + }, { name: 'parts', label: t`Parts`, @@ -267,10 +275,19 @@ export default function CategoryDetail() { ) }, { - name: 'subcategories', - label: t`Part Categories`, - icon: , - content: + name: 'stockitem', + label: t`Stock Items`, + icon: , + hidden: !id, + content: ( + + ) }, { name: 'parameters',