Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit 62eb6ca

Browse files
committed
Update file tree toggle event tracking
1 parent 5b5c6b7 commit 62eb6ca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/components/tree/TreeViewer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as styles from "app/components/tree/styles/style";
33
import { TreeHeader } from "app/components/tree/TreeHeader";
44
import * as github from "app/github/util";
55
import { TreeNode } from "app/sourcegraph/util";
6+
import { eventLogger } from "app/util/context";
67
import * as React from "react";
78

89
interface Props {
@@ -34,6 +35,7 @@ export class TreeViewer extends React.Component<Props, State> {
3435
}
3536

3637
toggleTreeViewer(): void {
38+
eventLogger.logFileTreeToggleClicked({ toggled: !this.state.toggled });
3739
if (this.props.onToggled) {
3840
this.props.onToggled(!this.state.toggled);
3941
}

chrome/extension/inject/github.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ function injectFileTree(): void {
187187

188188
function treeViewToggled(toggleState: boolean): void {
189189
toggled = toggleState;
190-
eventLogger.logFileTreeToggleClicked({ toggled: toggled });
191190
updateTreeViewLayout();
192191
selectTreeNodeForURL();
193192
chrome.storage.sync.set({ treeViewToggled: toggled });

0 commit comments

Comments
 (0)