prep for RightPanel full collapse
parent
f625e2d693
commit
009781dac7
|
@ -94,6 +94,9 @@ module.exports = React.createClass({
|
||||||
// ID of an event to highlight. If undefined, no event will be highlighted.
|
// ID of an event to highlight. If undefined, no event will be highlighted.
|
||||||
// Typically this will either be the same as 'eventId', or undefined.
|
// Typically this will either be the same as 'eventId', or undefined.
|
||||||
highlightedEventId: React.PropTypes.string,
|
highlightedEventId: React.PropTypes.string,
|
||||||
|
|
||||||
|
// is the RightPanel collapsed?
|
||||||
|
rightPanelCollapsed: React.PropTypes.bool,
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
|
@ -1214,7 +1217,11 @@ module.exports = React.createClass({
|
||||||
// We've got to this room by following a link, possibly a third party invite.
|
// We've got to this room by following a link, possibly a third party invite.
|
||||||
return (
|
return (
|
||||||
<div className="mx_RoomView">
|
<div className="mx_RoomView">
|
||||||
<RoomHeader ref="header" room={this.state.room} oobData={this.props.oobData} />
|
<RoomHeader ref="header"
|
||||||
|
room={this.state.room}
|
||||||
|
oobData={this.props.oobData}
|
||||||
|
rightPanelCollapsed={ this.props.rightPanelCollapsed }
|
||||||
|
/>
|
||||||
<div className="mx_RoomView_auxPanel">
|
<div className="mx_RoomView_auxPanel">
|
||||||
<RoomPreviewBar onJoinClick={ this.onJoinButtonClicked }
|
<RoomPreviewBar onJoinClick={ this.onJoinButtonClicked }
|
||||||
onRejectClick={ this.onRejectThreepidInviteButtonClicked }
|
onRejectClick={ this.onRejectThreepidInviteButtonClicked }
|
||||||
|
|
|
@ -35,6 +35,7 @@ module.exports = React.createClass({
|
||||||
oobData: React.PropTypes.object,
|
oobData: React.PropTypes.object,
|
||||||
editing: React.PropTypes.bool,
|
editing: React.PropTypes.bool,
|
||||||
saving: React.PropTypes.bool,
|
saving: React.PropTypes.bool,
|
||||||
|
rightPanelCollapsed: React.PropTypes.bool,
|
||||||
onSettingsClick: React.PropTypes.func,
|
onSettingsClick: React.PropTypes.func,
|
||||||
onSaveClick: React.PropTypes.func,
|
onSaveClick: React.PropTypes.func,
|
||||||
onSearchClick: React.PropTypes.func,
|
onSearchClick: React.PropTypes.func,
|
||||||
|
@ -264,6 +265,11 @@ module.exports = React.createClass({
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var rightPanel_buttons;
|
||||||
|
if (this.props.rightPanelCollapsed) {
|
||||||
|
// TODO: embed the RightPanel header in here if it's collapsed.
|
||||||
|
}
|
||||||
|
|
||||||
var right_row;
|
var right_row;
|
||||||
if (!this.props.editing) {
|
if (!this.props.editing) {
|
||||||
right_row =
|
right_row =
|
||||||
|
@ -273,6 +279,7 @@ module.exports = React.createClass({
|
||||||
<div className="mx_RoomHeader_button" onClick={this.props.onSearchClick} title="Search">
|
<div className="mx_RoomHeader_button" onClick={this.props.onSearchClick} title="Search">
|
||||||
<TintableSvg src="img/search.svg" width="21" height="19"/>
|
<TintableSvg src="img/search.svg" width="21" height="19"/>
|
||||||
</div>
|
</div>
|
||||||
|
{ rightPanel_buttons }
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue