mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 08:16:09 +08:00
feat(analytics): add Sidebar Opened & Sidebar Closed events
This commit is contained in:
parent
2474b0e7d3
commit
c86f8aa387
|
@ -103,8 +103,12 @@ class WorkspaceStore extends NylasStore
|
||||||
throw new Error("Actions.toggleWorkspaceLocationHidden - pass a WorkspaceStore.Location")
|
throw new Error("Actions.toggleWorkspaceLocationHidden - pass a WorkspaceStore.Location")
|
||||||
|
|
||||||
if @_hiddenLocations[location.id]
|
if @_hiddenLocations[location.id]
|
||||||
|
if location is @Location.MessageListSidebar
|
||||||
|
Actions.recordUserEvent("Sidebar Opened")
|
||||||
delete @_hiddenLocations[location.id]
|
delete @_hiddenLocations[location.id]
|
||||||
else
|
else
|
||||||
|
if location is @Location.MessageListSidebar
|
||||||
|
Actions.recordUserEvent("Sidebar Closed")
|
||||||
@_hiddenLocations[location.id] = location
|
@_hiddenLocations[location.id] = location
|
||||||
|
|
||||||
NylasEnv.config.set('core.workspace.hiddenLocations', @_hiddenLocations)
|
NylasEnv.config.set('core.workspace.hiddenLocations', @_hiddenLocations)
|
||||||
|
|
Loading…
Reference in a new issue