This commit is contained in:
Bruno Windels 2019-01-29 15:40:19 +01:00
parent 9f1b4ac4cc
commit 7c0f463c91
2 changed files with 3 additions and 4 deletions

View file

@ -614,13 +614,14 @@ export default React.createClass({
Modal.createTrackedDialog('Create Community', '', CreateGroupDialog); Modal.createTrackedDialog('Create Community', '', CreateGroupDialog);
} }
break; break;
case 'view_room_directory': case 'view_room_directory': {
const RoomDirectory = sdk.getComponent("structures.RoomDirectory"); const RoomDirectory = sdk.getComponent("structures.RoomDirectory");
Modal.createTrackedDialog('Room directory', '', RoomDirectory, { Modal.createTrackedDialog('Room directory', '', RoomDirectory, {
config: this.props.config, config: this.props.config,
}, 'mx_RoomDirectory_dialogWrapper'); }, 'mx_RoomDirectory_dialogWrapper');
// this._setPage(PageTypes.RoomDirectory); // this._setPage(PageTypes.RoomDirectory);
// this.notifyNewScreen('directory'); // this.notifyNewScreen('directory');
}
break; break;
case 'view_my_groups': case 'view_my_groups':
this._setPage(PageTypes.MyGroups); this._setPage(PageTypes.MyGroups);

View file

@ -106,8 +106,6 @@ export default React.createClass({
}, },
render: function() { render: function() {
const TintableSvg = sdk.getComponent("elements.TintableSvg");
let cancelButton; let cancelButton;
if (this.props.hasCancel) { if (this.props.hasCancel) {
cancelButton = <AccessibleButton onClick={this._onCancelClick} className="mx_Dialog_cancelButton"> cancelButton = <AccessibleButton onClick={this._onCancelClick} className="mx_Dialog_cancelButton">