Track more events from adding a cluster (#1481)

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala authored and GitHub committed 2020-11-24 14:01:51 +02:00
1 parent ff93760dc4
commit cb14d77a56
1 file changed
+3 -1
@@ -24,6 +24,7 @@ import { cssNames } from "../../utils";
import { Notifications } from "../notifications";
import { Tab, Tabs } from "../tabs";
import { ExecValidationNotFoundError } from "../../../common/custom-errors";
import { appEventBus } from "../../../common/event-bus";
enum KubeConfigSourceTab {
FILE = "file",
@@ -48,6 +49,7 @@ export class AddCluster extends React.Component {
componentDidMount() {
clusterStore.setActive(null);
this.setKubeConfig(userStore.kubeConfigPath);
appEventBus.emit({ name: "cluster-add", action: "start" });
}
componentWillUnmount() {
@@ -129,7 +131,7 @@ export class AddCluster extends React.Component {
}
this.error = "";
this.isWaiting = true;
appEventBus.emit({ name: "cluster-add", action: "click" });
newClusters = this.selectedContexts.filter(context => {
try {
const kubeConfig = this.kubeContexts.get(context);