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:
parent
ad6224ad8c
commit
9165ba9892
@ -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} />;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user