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:
parent
65b9e74d45
commit
1cc5607987
@ -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