From eedee5178950c70751c1ebfb2af3ffb10da5ebe8 Mon Sep 17 00:00:00 2001 From: hemahg Date: Thu, 12 Dec 2024 12:52:38 +0530 Subject: [PATCH] fix icon in rebalance page Signed-off-by: hemahg --- .../nodes/rebalances/RebalanceTable.tsx | 16 +++++++++++----- ui/public/stop-icon.svg | 3 +++ 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 ui/public/stop-icon.svg diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/nodes/rebalances/RebalanceTable.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/nodes/rebalances/RebalanceTable.tsx index a4d094dfa..b89dffba6 100644 --- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/nodes/rebalances/RebalanceTable.tsx +++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/nodes/rebalances/RebalanceTable.tsx @@ -20,12 +20,13 @@ import { ExclamationCircleIcon, PauseCircleIcon, PendingIcon, - ResourcesFullIcon, + OutlinedClockIcon, } from "@/libs/patternfly/react-icons"; import Link from "next/link"; import React, { ReactNode } from "react"; import { EmptyStateNoMatchFound } from "@/components/Table/EmptyStateNoMatchFound"; import { EmptyStateNoKafkaRebalance } from "./EmptyStateNoKafkaRebalance"; +import Image from "next/image"; export const RebalanceTableColumns = ["name", "status", "createdAt"] as const; @@ -59,7 +60,12 @@ const StatusLabel: Record = { Stopped: ( <> - + stop icon  Stopped @@ -75,7 +81,7 @@ const StatusLabel: Record = { NotReady: ( <> - +  NotReady @@ -216,7 +222,7 @@ export function RebalanceTable({ { title: t("refresh"), onClick: () => onRefresh(row), - isDisabled: !row.meta?.allowedActions.includes("refresh") + isDisabled: !row.meta?.allowedActions.includes("refresh"), }, { title: t("stop"), @@ -262,7 +268,7 @@ export function RebalanceTable({ {t("brokers")} {!row.attributes.brokers || - row.attributes.brokers.length === 0 + row.attributes.brokers.length === 0 ? "N/A" : row.attributes.brokers.join(",")} diff --git a/ui/public/stop-icon.svg b/ui/public/stop-icon.svg new file mode 100644 index 000000000..335f9760b --- /dev/null +++ b/ui/public/stop-icon.svg @@ -0,0 +1,3 @@ + + +