migration additions -- part 3 (adding makeObservable to constructor)

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2021-04-20 13:45:35 +03:00
1 parent 95794af5b2
commit 08787dce1f
139 files changed
+732 -147

No files matched your search

@@ -1,5 +1,5 @@
import { sum } from "lodash";
import { action, computed, observable } from "mobx";
import { action, computed, observable, makeObservable } from "mobx";
import { clusterApi, IClusterMetrics, INodeMetrics, Node, nodesApi } from "../../api/endpoints";
import { autobind } from "../../utils";
import { KubeObjectStore } from "../../kube-object.store";
@@ -14,6 +14,12 @@ export class NodesStore extends KubeObjectStore<Node> {
@observable metricsLoading = false;
@observable metricsLoaded = false;
constructor() {
super();
makeObservable(this);
}
@action
async loadUsageMetrics() {
this.metricsLoading = true;