mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Explicitly initialize registries
- Helps moves towards turning on banning CyclicImports Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
c18df6bcae
commit
6d10f011e5
101 files changed
+1178
-1087
No files matched your search
@@ -25,7 +25,7 @@ import React from "react";
|
||||
import { Icon } from "../icon";
|
||||
import { cssNames, formatDuration } from "../../utils";
|
||||
import { KubeObject, KubeObjectStatus, KubeObjectStatusLevel } from "../../..//extensions/renderer-api/k8s-api";
|
||||
import { kubeObjectStatusRegistry } from "../../../extensions/registries";
|
||||
import { KubeObjectStatusRegistry } from "../../../extensions/registries";
|
||||
|
||||
function statusClassName(level: KubeObjectStatusLevel): string {
|
||||
switch (level) {
|
||||
@@ -105,7 +105,7 @@ export class KubeObjectStatusIcon extends React.Component<Props> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const statuses = kubeObjectStatusRegistry.getItemsForObject(this.props.object);
|
||||
const statuses = KubeObjectStatusRegistry.getInstance().getItemsForObject(this.props.object);
|
||||
|
||||
if (statuses.length === 0) {
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user