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

show led only for clusters (#3153)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-06-23 11:03:27 +03:00 committed by GitHub
parent 65b9e74d45
commit 1cc5607987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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} />;