aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/Menu.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Menu.js')
-rw-r--r--src/lib/Menu.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js
index 3d6b6c824..d19aa9d6e 100644
--- a/src/lib/Menu.js
+++ b/src/lib/Menu.js
@@ -3,8 +3,9 @@ import { observable, autorun } from 'mobx';
3import { defineMessages } from 'react-intl'; 3import { defineMessages } from 'react-intl';
4 4
5import { isMac, ctrlKey, cmdKey } from '../environment'; 5import { isMac, ctrlKey, cmdKey } from '../environment';
6import { workspaceStore } from '../features/workspaces/index'; 6import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../features/workspaces/index';
7import { workspaceActions } from '../features/workspaces/actions'; 7import { workspaceActions } from '../features/workspaces/actions';
8import { gaEvent } from './analytics';
8 9
9const { app, Menu, dialog } = remote; 10const { app, Menu, dialog } = remote;
10 11
@@ -809,6 +810,7 @@ export default class FranzMenu {
809 accelerator: `${cmdKey}+D`, 810 accelerator: `${cmdKey}+D`,
810 click: () => { 811 click: () => {
811 workspaceActions.toggleWorkspaceDrawer(); 812 workspaceActions.toggleWorkspaceDrawer();
813 gaEvent(GA_CATEGORY_WORKSPACES, 'toggleDrawer', 'menu');
812 }, 814 },
813 enabled: this.stores.user.isLoggedIn, 815 enabled: this.stores.user.isLoggedIn,
814 }, { 816 }, {
@@ -823,6 +825,7 @@ export default class FranzMenu {
823 checked: !activeWorkspace, 825 checked: !activeWorkspace,
824 click: () => { 826 click: () => {
825 workspaceActions.deactivate(); 827 workspaceActions.deactivate();
828 gaEvent(GA_CATEGORY_WORKSPACES, 'switch', 'menu');
826 }, 829 },
827 }); 830 });
828 831
@@ -835,6 +838,7 @@ export default class FranzMenu {
835 checked: activeWorkspace ? workspace.id === activeWorkspace.id : false, 838 checked: activeWorkspace ? workspace.id === activeWorkspace.id : false,
836 click: () => { 839 click: () => {
837 workspaceActions.activate({ workspace }); 840 workspaceActions.activate({ workspace });
841 gaEvent(GA_CATEGORY_WORKSPACES, 'switch', 'menu');
838 }, 842 },
839 })); 843 }));
840 } 844 }