Skip to content

Commit

Permalink
Add link to the reset offset learning resource page
Browse files Browse the repository at this point in the history
Signed-off-by: hemahg <[email protected]>
  • Loading branch information
hemahg committed Sep 16, 2024
1 parent cfd2e47 commit 2a1eb0a
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
StackItem,
Text,
} from "@/libs/patternfly/react-core";
import { isProductizedBuild } from "@/utils/env";
import { useTranslations } from "next-intl";
import { useRouter } from "next/navigation";

Expand Down Expand Up @@ -69,11 +70,13 @@ export function ResetOffsetModal({
<StackItem>
<Text>{t("shutdown_active_members")}</Text>
</StackItem>
<StackItem>
<ExternalLink testId={"learn_to_shutdown_members"} href={""}>
{t("learn_to_shutdown_members")}
</ExternalLink>
</StackItem>
{isProductizedBuild && (
<StackItem>
<ExternalLink testId={"learn_to_shutdown_members"} href={"https://docs.redhat.com/en/documentation/red_hat_streams_for_apache_kafka/2.7/html-single/kafka_configuration_tuning/index#managing_offset_policy"}>
{t("learn_to_shutdown_members")}
</ExternalLink>
</StackItem>
)}
</Stack>
</Modal>
);
Expand Down

0 comments on commit 2a1eb0a

Please sign in to comment.