1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Add "Export E2E keys" option to logout dialog

Fixes https://github.com/vector-im/riot-web/issues/3184
This commit is contained in:
Luke Barnard
2017-03-16 14:18:18 +00:00
parent 648ad8d66c
commit b21f016d37
2 changed files with 10 additions and 4 deletions

View File

@@ -268,6 +268,12 @@ module.exports = React.createClass({
but for now be warned.
</div>,
button: "Sign out",
extraButtons: [
<button className="mx_Dialog_primary"
onClick={this._onExportE2eKeysClicked}>
Export E2E room keys
</button>
],
onFinished: (confirmed) => {
if (confirmed) {
dis.dispatch({action: 'logout'});