From cb14d77a564e430e7c824222cca0e4396479be4e Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Tue, 24 Nov 2020 14:01:51 +0200 Subject: [PATCH] Track more events from adding a cluster (#1481) Signed-off-by: Lauri Nevala --- src/renderer/components/+add-cluster/add-cluster.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/+add-cluster/add-cluster.tsx b/src/renderer/components/+add-cluster/add-cluster.tsx index 57f84d45ac..72b54aabd1 100644 --- a/src/renderer/components/+add-cluster/add-cluster.tsx +++ b/src/renderer/components/+add-cluster/add-cluster.tsx @@ -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);