From 71db7a667badfb541ac5d60d47feb2ffd9dc3a51 Mon Sep 17 00:00:00 2001 From: Thiago Dallacqua Date: Fri, 18 Oct 2024 12:46:32 -0300 Subject: [PATCH] faet: add column type badge to all columns --- .../components/FilterForm/components/FilterField.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/webui/react/src/components/FilterForm/components/FilterField.tsx b/webui/react/src/components/FilterForm/components/FilterField.tsx index 58fb9094aadf..c84741cf95c4 100644 --- a/webui/react/src/components/FilterForm/components/FilterField.tsx +++ b/webui/react/src/components/FilterForm/components/FilterField.tsx @@ -238,15 +238,21 @@ const FilterField = ({ const getColDisplayName = (col: V1ProjectColumn) => { const metCol = metadataColumns.get(col.column); + const colType = col.type.replace('COLUMN_TYPE_', '').toLowerCase(); + if (metCol !== undefined && metCol.length > 1) { return ( <> - {col.column} + {col.column} ); } - return col.displayName || col.column; + return ( + <> + {col.displayName || col.column} + + ); }; return (