aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/features/workspaces/components/WorkspaceDrawer.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/features/workspaces/components/WorkspaceDrawer.js b/src/features/workspaces/components/WorkspaceDrawer.js
index baf59a1fb..f35faf691 100644
--- a/src/features/workspaces/components/WorkspaceDrawer.js
+++ b/src/features/workspaces/components/WorkspaceDrawer.js
@@ -158,6 +158,7 @@ class WorkspaceDrawer extends Component {
158 name={intl.formatMessage(messages.allServices)} 158 name={intl.formatMessage(messages.allServices)}
159 onClick={() => { 159 onClick={() => {
160 workspaceActions.deactivate(); 160 workspaceActions.deactivate();
161 workspaceActions.toggleWorkspaceDrawer();
161 gaEvent(GA_CATEGORY_WORKSPACES, 'switch', 'drawer'); 162 gaEvent(GA_CATEGORY_WORKSPACES, 'switch', 'drawer');
162 }} 163 }}
163 services={getServicesForWorkspace(null)} 164 services={getServicesForWorkspace(null)}
@@ -169,7 +170,9 @@ class WorkspaceDrawer extends Component {
169 name={workspace.name} 170 name={workspace.name}
170 isActive={actualWorkspace === workspace} 171 isActive={actualWorkspace === workspace}
171 onClick={() => { 172 onClick={() => {
173 if (actualWorkspace === workspace) return;
172 workspaceActions.activate({ workspace }); 174 workspaceActions.activate({ workspace });
175 workspaceActions.toggleWorkspaceDrawer();
173 gaEvent(GA_CATEGORY_WORKSPACES, 'switch', 'drawer'); 176 gaEvent(GA_CATEGORY_WORKSPACES, 'switch', 'drawer');
174 }} 177 }}
175 services={getServicesForWorkspace(workspace)} 178 services={getServicesForWorkspace(workspace)}