From 9165ba989297d213d4c3ac62b58da46d00972ad4 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Tue, 22 Jun 2021 17:18:57 +0300 Subject: [PATCH] show led only for clusters Signed-off-by: Jari Kolehmainen --- src/renderer/components/hotbar/hotbar-entity-icon.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/components/hotbar/hotbar-entity-icon.tsx b/src/renderer/components/hotbar/hotbar-entity-icon.tsx index 8620db124d..b03bf3fb92 100644 --- a/src/renderer/components/hotbar/hotbar-entity-icon.tsx +++ b/src/renderer/components/hotbar/hotbar-entity-icon.tsx @@ -74,6 +74,10 @@ export class HotbarEntityIcon extends React.Component { } get ledIcon() { + if (this.props.entity.kind !== "KubernetesCluster") { + return null; + } + const className = cssNames("led", { online: this.props.entity.status.phase == "connected"}); // TODO: make it more generic return
;