diff --git a/src/components/views/context_menus/RoomTileContextMenu.js b/src/components/views/context_menus/RoomTileContextMenu.js index 521282488e..23c5411e2d 100644 --- a/src/components/views/context_menus/RoomTileContextMenu.js +++ b/src/components/views/context_menus/RoomTileContextMenu.js @@ -271,6 +271,28 @@ module.exports = React.createClass({ ); }, + _onClickSettings: function() { + dis.dispatch({ + action: 'view_room', + room_id: this.props.room.roomId, + }, true); + dis.dispatch({ action: 'open_room_settings' }); + if (this.props.onFinished) { + this.props.onFinished(); + } + }, + + _renderSettingsMenu: function() { + return ( +
+
+ + { _t('Settings') } +
+
+ ); + }, + _renderLeaveMenu: function(membership) { if (!membership) { return null; @@ -350,13 +372,17 @@ module.exports = React.createClass({ // Can't set notif level or tags on non-join rooms if (myMembership !== 'join') { - return this._renderLeaveMenu(myMembership); + return
+ { this._renderSettingsMenu() } + { this._renderLeaveMenu(myMembership) } +
; } return (
{ this._renderNotifMenu() }
+ { this._renderSettingsMenu() } { this._renderLeaveMenu(myMembership) }
{ this._renderRoomTagMenu() }