Removed package "autobind-decorator" and @boundMethod in favour of "auto-bind" util for constructors-only. (#5218)

This commit is contained in:
Roman authored and GitHub committed 2022-04-07 17:21:54 +03:00
1 parent 5f145e69e5
commit 06e7dfce5e
45 files changed
+150 -180

No files matched your search

@@ -19,7 +19,6 @@ import { KubeObjectMeta } from "../kube-object-meta";
import { computeRuleDeclarations, getMetricsForIngress, type IIngressMetrics } from "../../../common/k8s-api/endpoints/ingress.api";
import { getActiveClusterEntity } from "../../api/catalog-entity-registry";
import { ClusterMetricsResourceType } from "../../../common/cluster-types";
import { boundMethod } from "../../utils";
import logger from "../../../common/logger";
export interface IngressDetailsProps extends KubeObjectDetailsProps<Ingress> {
@@ -42,12 +41,11 @@ export class IngressDetails extends React.Component<IngressDetailsProps> {
]);
}
@boundMethod
async loadMetrics() {
loadMetrics = async () => {
const { object: ingress } = this.props;
this.metrics = await getMetricsForIngress(ingress.getName(), ingress.getNs());
}
};
renderPaths(ingress: Ingress) {
return ingress.getRules()