show led only for clusters

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-06-22 17:18:57 +03:00
1 parent ad6224ad8c
commit 9165ba9892
1 file changed
+4
@@ -74,6 +74,10 @@ export class HotbarEntityIcon extends React.Component<Props> {
} }
get ledIcon() { 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 const className = cssNames("led", { online: this.props.entity.status.phase == "connected"}); // TODO: make it more generic
return <div className={className} />; return <div className={className} />;