mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Track more events from adding a cluster (#1481)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
ff93760dc4
commit
cb14d77a56
@ -24,6 +24,7 @@ import { cssNames } from "../../utils";
|
|||||||
import { Notifications } from "../notifications";
|
import { Notifications } from "../notifications";
|
||||||
import { Tab, Tabs } from "../tabs";
|
import { Tab, Tabs } from "../tabs";
|
||||||
import { ExecValidationNotFoundError } from "../../../common/custom-errors";
|
import { ExecValidationNotFoundError } from "../../../common/custom-errors";
|
||||||
|
import { appEventBus } from "../../../common/event-bus";
|
||||||
|
|
||||||
enum KubeConfigSourceTab {
|
enum KubeConfigSourceTab {
|
||||||
FILE = "file",
|
FILE = "file",
|
||||||
@ -48,6 +49,7 @@ export class AddCluster extends React.Component {
|
|||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
clusterStore.setActive(null);
|
clusterStore.setActive(null);
|
||||||
this.setKubeConfig(userStore.kubeConfigPath);
|
this.setKubeConfig(userStore.kubeConfigPath);
|
||||||
|
appEventBus.emit({ name: "cluster-add", action: "start" });
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
@ -129,7 +131,7 @@ export class AddCluster extends React.Component {
|
|||||||
}
|
}
|
||||||
this.error = "";
|
this.error = "";
|
||||||
this.isWaiting = true;
|
this.isWaiting = true;
|
||||||
|
appEventBus.emit({ name: "cluster-add", action: "click" });
|
||||||
newClusters = this.selectedContexts.filter(context => {
|
newClusters = this.selectedContexts.filter(context => {
|
||||||
try {
|
try {
|
||||||
const kubeConfig = this.kubeContexts.get(context);
|
const kubeConfig = this.kubeContexts.get(context);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user