mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Use all namespaces for cluster overview warnings (#3441)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
4873b85647
commit
078583412b
@ -22,7 +22,7 @@
|
|||||||
import "./cluster-issues.scss";
|
import "./cluster-issues.scss";
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { observer } from "mobx-react";
|
import { disposeOnUnmount, observer } from "mobx-react";
|
||||||
import { computed, makeObservable } from "mobx";
|
import { computed, makeObservable } from "mobx";
|
||||||
import { Icon } from "../icon";
|
import { Icon } from "../icon";
|
||||||
import { SubHeader } from "../layout/sub-header";
|
import { SubHeader } from "../layout/sub-header";
|
||||||
@ -35,6 +35,7 @@ import { Spinner } from "../spinner";
|
|||||||
import { ThemeStore } from "../../theme.store";
|
import { ThemeStore } from "../../theme.store";
|
||||||
import { lookupApiLink } from "../../api/kube-api";
|
import { lookupApiLink } from "../../api/kube-api";
|
||||||
import { kubeSelectedUrlParam, showDetails } from "../kube-object";
|
import { kubeSelectedUrlParam, showDetails } from "../kube-object";
|
||||||
|
import { kubeWatchApi } from "../../api/kube-watch-api";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
className?: string;
|
className?: string;
|
||||||
@ -65,6 +66,10 @@ export class ClusterIssues extends React.Component<Props> {
|
|||||||
constructor(props: Props) {
|
constructor(props: Props) {
|
||||||
super(props);
|
super(props);
|
||||||
makeObservable(this);
|
makeObservable(this);
|
||||||
|
|
||||||
|
disposeOnUnmount(this, [
|
||||||
|
kubeWatchApi.subscribeStores([eventStore, nodesStore])
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@computed get warnings() {
|
@computed get warnings() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user