This commit is contained in:
Matthew Hodgson 2016-09-13 13:12:45 +01:00
parent 3b52081092
commit 32b1b6f58a

View file

@ -20,6 +20,7 @@ var React = require('react');
var sdk = require('../../../index');
var MatrixClientPeg = require('../../../MatrixClientPeg');
var Modal = require("../../../Modal");
var dis = require("../../../dispatcher");
var linkify = require('linkifyjs');
var linkifyElement = require('linkifyjs/element');
@ -114,6 +115,10 @@ module.exports = React.createClass({
}).done();
},
onCollapseRhsClick: function(ev) {
dis.dispatch({ action: 'hide_right_panel' });
},
/**
* After editing the settings, get the new name for the room
*
@ -289,8 +294,8 @@ module.exports = React.createClass({
var rightPanel_buttons;
if (this.props.collapsedRhs) {
rightPanel_buttons =
<div className="mx_RoomHeader_button" onClick={this.props.onSearchClick} title="Search">
<TintableSvg src="img/icons-search.svg" width="35" height="35"/>
<div className="mx_RoomHeader_button" onClick={this.onCollapseRhsClick} title=">">
<TintableSvg src="img/minimise.svg" width="10" height="16"/>
</div>
}