You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
use logout dialog in topleft menu instead of dispatching logout
This commit is contained in:
@@ -17,6 +17,8 @@ limitations under the License.
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import dis from '../../../dispatcher';
|
import dis from '../../../dispatcher';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
|
import LogoutDialog from "../dialogs/LogoutDialog";
|
||||||
|
import Modal from "../../../Modal";
|
||||||
|
|
||||||
export class TopLeftMenu extends React.Component {
|
export class TopLeftMenu extends React.Component {
|
||||||
constructor() {
|
constructor() {
|
||||||
@@ -42,7 +44,7 @@ export class TopLeftMenu extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
signOut() {
|
signOut() {
|
||||||
dis.dispatch({action: 'logout'});
|
Modal.createTrackedDialog('Logout E2E Export', '', LogoutDialog);
|
||||||
this.closeMenu();
|
this.closeMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user