From 1cc56079875bbdc2a1f05992c548224833a034f5 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Wed, 23 Jun 2021 11:03:27 +0300 Subject: [PATCH] show led only for clusters (#3153) 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
;