diff --git a/app/pages/system/networking/IpPoolPage.tsx b/app/pages/system/networking/IpPoolPage.tsx index bdac9b005..bfb544ea5 100644 --- a/app/pages/system/networking/IpPoolPage.tsx +++ b/app/pages/system/networking/IpPoolPage.tsx @@ -49,7 +49,7 @@ import { useColsWithActions, type MenuAction } from '~/table/columns/action-col' import { Columns } from '~/table/columns/common' import { useQueryTable } from '~/table/QueryTable' import { UtilizationFraction } from '~/ui/lib/BigNum' -import { toComboboxItems } from '~/ui/lib/Combobox' +import { type ComboboxItem } from '~/ui/lib/Combobox' import { CreateButton, CreateLink } from '~/ui/lib/CreateButton' import * as Dropdown from '~/ui/lib/DropdownMenu' import { EmptyMessage } from '~/ui/lib/EmptyMessage' @@ -472,6 +472,22 @@ type LinkSiloFormValues = { const defaultValues: LinkSiloFormValues = { silo: undefined, isDefault: false } +// Combobox item showing the silo name with its description underneath. +const toSiloComboboxItem = ({ name, description }: Silo): ComboboxItem => ({ + value: name, + selectedLabel: name, + label: ( +