diff options
Diffstat (limited to 'src/features/workspaces/components/WorkspaceDrawer.js')
-rw-r--r-- | src/features/workspaces/components/WorkspaceDrawer.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/features/workspaces/components/WorkspaceDrawer.js b/src/features/workspaces/components/WorkspaceDrawer.js index 07100f5a1..baa94f6b3 100644 --- a/src/features/workspaces/components/WorkspaceDrawer.js +++ b/src/features/workspaces/components/WorkspaceDrawer.js | |||
@@ -10,8 +10,7 @@ import ReactTooltip from 'react-tooltip'; | |||
10 | import { mdiPlusBox, mdiSettings, mdiStar } from '@mdi/js'; | 10 | import { mdiPlusBox, mdiSettings, mdiStar } from '@mdi/js'; |
11 | import WorkspaceDrawerItem from './WorkspaceDrawerItem'; | 11 | import WorkspaceDrawerItem from './WorkspaceDrawerItem'; |
12 | import { workspaceActions } from '../actions'; | 12 | import { workspaceActions } from '../actions'; |
13 | import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../index'; | 13 | import { workspaceStore } from '../index'; |
14 | import { gaEvent } from '../../../lib/analytics'; | ||
15 | 14 | ||
16 | const messages = defineMessages({ | 15 | const messages = defineMessages({ |
17 | headline: { | 16 | headline: { |
@@ -158,7 +157,6 @@ class WorkspaceDrawer extends Component { | |||
158 | className={classes.workspacesSettingsButton} | 157 | className={classes.workspacesSettingsButton} |
159 | onClick={() => { | 158 | onClick={() => { |
160 | workspaceActions.openWorkspaceSettings(); | 159 | workspaceActions.openWorkspaceSettings(); |
161 | gaEvent(GA_CATEGORY_WORKSPACES, 'settings', 'drawerHeadline'); | ||
162 | }} | 160 | }} |
163 | data-tip={`${intl.formatMessage(messages.workspacesSettingsTooltip)}`} | 161 | data-tip={`${intl.formatMessage(messages.workspacesSettingsTooltip)}`} |
164 | > | 162 | > |
@@ -180,7 +178,6 @@ class WorkspaceDrawer extends Component { | |||
180 | icon={mdiStar} | 178 | icon={mdiStar} |
181 | onClick={() => { | 179 | onClick={() => { |
182 | onUpgradeAccountClick(); | 180 | onUpgradeAccountClick(); |
183 | gaEvent('User', 'upgrade', 'workspaceDrawer'); | ||
184 | }} | 181 | }} |
185 | /> | 182 | /> |
186 | ) : ( | 183 | ) : ( |
@@ -191,7 +188,6 @@ class WorkspaceDrawer extends Component { | |||
191 | icon={mdiPlusBox} | 188 | icon={mdiPlusBox} |
192 | onClick={() => { | 189 | onClick={() => { |
193 | workspaceActions.openWorkspaceSettings(); | 190 | workspaceActions.openWorkspaceSettings(); |
194 | gaEvent(GA_CATEGORY_WORKSPACES, 'add', 'drawerPremiumCta'); | ||
195 | }} | 191 | }} |
196 | /> | 192 | /> |
197 | )} | 193 | )} |
@@ -203,7 +199,6 @@ class WorkspaceDrawer extends Component { | |||
203 | onClick={() => { | 199 | onClick={() => { |
204 | workspaceActions.deactivate(); | 200 | workspaceActions.deactivate(); |
205 | workspaceActions.toggleWorkspaceDrawer(); | 201 | workspaceActions.toggleWorkspaceDrawer(); |
206 | gaEvent(GA_CATEGORY_WORKSPACES, 'switch', 'drawer'); | ||
207 | }} | 202 | }} |
208 | services={getServicesForWorkspace(null)} | 203 | services={getServicesForWorkspace(null)} |
209 | isActive={actualWorkspace == null} | 204 | isActive={actualWorkspace == null} |
@@ -218,7 +213,6 @@ class WorkspaceDrawer extends Component { | |||
218 | if (actualWorkspace === workspace) return; | 213 | if (actualWorkspace === workspace) return; |
219 | workspaceActions.activate({ workspace }); | 214 | workspaceActions.activate({ workspace }); |
220 | workspaceActions.toggleWorkspaceDrawer(); | 215 | workspaceActions.toggleWorkspaceDrawer(); |
221 | gaEvent(GA_CATEGORY_WORKSPACES, 'switch', 'drawer'); | ||
222 | }} | 216 | }} |
223 | onContextMenuEditClick={() => workspaceActions.edit({ workspace })} | 217 | onContextMenuEditClick={() => workspaceActions.edit({ workspace })} |
224 | services={getServicesForWorkspace(workspace)} | 218 | services={getServicesForWorkspace(workspace)} |
@@ -229,7 +223,6 @@ class WorkspaceDrawer extends Component { | |||
229 | className={classes.addNewWorkspaceLabel} | 223 | className={classes.addNewWorkspaceLabel} |
230 | onClick={() => { | 224 | onClick={() => { |
231 | workspaceActions.openWorkspaceSettings(); | 225 | workspaceActions.openWorkspaceSettings(); |
232 | gaEvent(GA_CATEGORY_WORKSPACES, 'add', 'drawerAddLabel'); | ||
233 | }} | 226 | }} |
234 | > | 227 | > |
235 | <Icon | 228 | <Icon |