From fc57109c541ca6581ce8d6dc4eccb26a6e066ec2 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 11 Dec 2018 12:43:17 +0100 Subject: [PATCH] use logout dialog in topleft menu instead of dispatching logout --- src/components/views/context_menus/TopLeftMenu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/context_menus/TopLeftMenu.js b/src/components/views/context_menus/TopLeftMenu.js index 76ac10399c..b8e82a92e4 100644 --- a/src/components/views/context_menus/TopLeftMenu.js +++ b/src/components/views/context_menus/TopLeftMenu.js @@ -17,6 +17,8 @@ limitations under the License. import React from 'react'; import dis from '../../../dispatcher'; import { _t } from '../../../languageHandler'; +import LogoutDialog from "../dialogs/LogoutDialog"; +import Modal from "../../../Modal"; export class TopLeftMenu extends React.Component { constructor() { @@ -42,7 +44,7 @@ export class TopLeftMenu extends React.Component { } signOut() { - dis.dispatch({action: 'logout'}); + Modal.createTrackedDialog('Logout E2E Export', '', LogoutDialog); this.closeMenu(); }