Early modalization of UserSettings

Basically just shove it into a modal and call it good.
This commit is contained in:
Travis Ralston 2019-01-18 13:09:17 -07:00
parent 29be3ee4b5
commit 0e42c0892e
2 changed files with 55 additions and 2 deletions

View file

@ -611,8 +611,12 @@ export default React.createClass({
this._viewIndexedRoom(payload.roomIndex);
break;
case 'view_user_settings':
this._setPage(PageTypes.UserSettings);
this.notifyNewScreen('settings');
const UserSettingsDialog = sdk.getComponent("dialogs.UserSettingsDialog");
Modal.createTrackedDialog('User settings', '', UserSettingsDialog, {
title: _t("Settings"),
});
//this._setPage(PageTypes.UserSettings);
//this.notifyNewScreen('settings');
break;
case 'close_settings':
this.setState({