From fa2dc815ffd1e1136a1fe19c485cefe3be806513 Mon Sep 17 00:00:00 2001 From: "konveyor-ci-bot[bot]" <159171263+konveyor-ci-bot[bot]@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:08:14 -0400 Subject: [PATCH] :bug: Column name change to tagCategory (#1881) (#1882) Resolves https://issues.redhat.com/browse/MTA-2681 Signed-off-by: Ian Bolton Signed-off-by: Cherry Picker Signed-off-by: Ian Bolton Signed-off-by: Cherry Picker Co-authored-by: Ian Bolton --- client/src/app/pages/controls/tags/tags.tsx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/client/src/app/pages/controls/tags/tags.tsx b/client/src/app/pages/controls/tags/tags.tsx index b3efd2e0e1..cd7f3057bd 100644 --- a/client/src/app/pages/controls/tags/tags.tsx +++ b/client/src/app/pages/controls/tags/tags.tsx @@ -165,7 +165,7 @@ export const Tags: React.FC = () => { idProperty: "name", items: tagCategories, columnNames: { - name: t("terms.name"), + tagCategory: t("terms.tagCategory"), rank: t("terms.rank"), color: t("terms.color"), tagCount: t("terms.tagCount"), @@ -236,10 +236,10 @@ export const Tags: React.FC = () => { }, ], initialItemsPerPage: 10, - sortableColumns: ["name", "rank", "tagCount"], - initialSort: { columnKey: "name", direction: "asc" }, + sortableColumns: ["tagCategory", "rank", "tagCount"], + initialSort: { columnKey: "tagCategory", direction: "asc" }, getSortValues: (item) => ({ - name: item?.name || "", + tagCategory: item?.name || "", rank: typeof item?.rank === "number" ? item.rank : Number.MAX_VALUE, tagCount: item?.tags?.length || 0, }), @@ -318,7 +318,10 @@ export const Tags: React.FC = () => { - + @@ -365,7 +368,10 @@ export const Tags: React.FC = () => { item={tagCategory} rowIndex={rowIndex} > - + {tagCategory.name}