Skip to content

Commit de99a50

Browse files
faet: add column type badge to all columns
1 parent cfcb1b5 commit de99a50

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

webui/react/src/components/FilterForm/components/FilterField.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,21 @@ const FilterField = ({
238238

239239
const getColDisplayName = (col: V1ProjectColumn) => {
240240
const metCol = metadataColumns.get(col.column);
241+
const colType = col.type.replace('COLUMN_TYPE_', '').toLowerCase();
242+
241243
if (metCol !== undefined && metCol.length > 1) {
242244
return (
243245
<>
244-
{col.column} <Badge text={col.type.replace('COLUMN_TYPE_', '').toLowerCase()} />
246+
{col.column} <Badge text={colType} />
245247
</>
246248
);
247249
}
248250

249-
return col.displayName || col.column;
251+
return (
252+
<>
253+
{col.displayName || col.column} <Badge text={colType} />
254+
</>
255+
);
250256
};
251257

252258
return (

0 commit comments

Comments
 (0)