From 68f15565a3f01491f86761b61f80463eb30ca4c0 Mon Sep 17 00:00:00 2001 From: Radoslaw Szwajkowski Date: Tue, 7 Nov 2023 20:54:24 +0100 Subject: [PATCH] temporary Features cell Signed-off-by: Radoslaw Szwajkowski --- .../tabs/VirtualMachines/OpenShiftVirtualMachinesRow.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/VirtualMachines/OpenShiftVirtualMachinesRow.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/VirtualMachines/OpenShiftVirtualMachinesRow.tsx index 68583bbd9..ddd00da17 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/VirtualMachines/OpenShiftVirtualMachinesRow.tsx +++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/VirtualMachines/OpenShiftVirtualMachinesRow.tsx @@ -7,12 +7,13 @@ import { Td, Tr } from '@patternfly/react-table'; import { PowerStateCellRenderer } from './components/PowerStateCellRenderer'; import { VmResourceLinkRenderer } from './components/VmResourceLinkRenderer'; import { VMCellProps, VmData } from './components'; -import { getVmTemplate } from './utils'; +import { getOpenShiftFeatureMap, getVmTemplate } from './utils'; const cellRenderers: Record> = { name: VmResourceLinkRenderer, status: PowerStateCellRenderer, template: ({ data }) => {getVmTemplate(data?.vm)}, + features: ({ data }) => {JSON.stringify(getOpenShiftFeatureMap(data?.vm))}, }; const renderTd = ({ resourceData, resourceFieldId, resourceFields }: RenderTdProps) => {