From bb189874cb29f3aab7fc1c2b074e515a07114435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Sch=C3=A4fer?= Date: Sun, 1 Mar 2026 18:17:45 +0100 Subject: [PATCH] fix(newt-install): conditionally display Kubernetes installation info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc Schäfer --- src/components/newt-install-commands.tsx | 32 +++++++++++++----------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/src/components/newt-install-commands.tsx b/src/components/newt-install-commands.tsx index 86acc492f..ba0363e3b 100644 --- a/src/components/newt-install-commands.tsx +++ b/src/components/newt-install-commands.tsx @@ -210,19 +210,21 @@ WantedBy=default.target`

{t("commands")}

-

- For more and up to date Kubernetes installation - information, see{" "} - - docs.pangolin.net/manage/sites/install-kubernetes - - . -

+ {platform === "kubernetes" && ( +

+ For more and up to date Kubernetes installation + information, see{" "} + + docs.pangolin.net/manage/sites/install-kubernetes + + . +

+ )}
{commands.map((item, index) => { const commandText = @@ -232,8 +234,10 @@ WantedBy=default.target` ? undefined : item.title; + const key = `${title ?? ""}::${commandText}`; + return ( -
+
{title && (

{title}