Skip to content

Commit

Permalink
faet: add column type badge to all columns
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodallacqua-hpe committed Oct 18, 2024
1 parent 9dd2c17 commit 71db7a6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions webui/react/src/components/FilterForm/components/FilterField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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} <Badge text={col.type.replace('COLUMN_TYPE_', '').toLowerCase()} />
{col.column} <Badge text={colType} />
</>
);
}

return col.displayName || col.column;
return (
<>
{col.displayName || col.column} <Badge text={colType} />
</>
);
};

return (
Expand Down

0 comments on commit 71db7a6

Please sign in to comment.