mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Removed package "autobind-decorator" and @boundMethod in favour of "auto-bind" util for constructors-only. (#5218)
This commit is contained in:
1 parent
5f145e69e5
commit
06e7dfce5e
45 files changed
+150
-180
No files matched your search
@@ -10,7 +10,7 @@ import { computed, makeObservable, observable, reaction } from "mobx";
|
||||
import { disposeOnUnmount, observer } from "mobx-react";
|
||||
import { DrawerItem } from "../drawer";
|
||||
import type { Disposer } from "../../utils";
|
||||
import { boundMethod, cssNames } from "../../utils";
|
||||
import { cssNames } from "../../utils";
|
||||
import { getMetricsForNamespace, type IPodMetrics, Namespace } from "../../../common/k8s-api/endpoints";
|
||||
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
||||
import { Link } from "react-router-dom";
|
||||
@@ -71,10 +71,9 @@ class NonInjectedNamespaceDetails extends React.Component<NamespaceDetailsProps
|
||||
return limitRangeStore.getAllByNs(namespace);
|
||||
}
|
||||
|
||||
@boundMethod
|
||||
async loadMetrics() {
|
||||
loadMetrics = async () => {
|
||||
this.metrics = await getMetricsForNamespace(this.props.object.getName(), "");
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
const { object: namespace } = this.props;
|
||||
|
||||
Reference in new issue
Block a user