1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

show led only for clusters

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-06-22 17:18:57 +03:00
parent ad6224ad8c
commit 9165ba9892

View File

@ -74,6 +74,10 @@ export class HotbarEntityIcon extends React.Component<Props> {
}
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 <div className={className} />;