use logout dialog in topleft menu instead of dispatching logout

pull/21833/head
Bruno Windels 2018-12-11 12:43:17 +01:00
parent 48cfd08ea6
commit fc57109c54
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}