The invite group, will no longer be shown when the directory listing is being shown

This commit is contained in:
wmwragg 2016-09-14 17:13:06 +01:00
parent 66ef5213b8
commit efa574c452
1 changed files with 10 additions and 6 deletions

View File

@ -165,6 +165,7 @@ module.exports = React.createClass({
var FilePanel = sdk.getComponent('structures.FilePanel'); var FilePanel = sdk.getComponent('structures.FilePanel');
var TintableSvg = sdk.getComponent("elements.TintableSvg"); var TintableSvg = sdk.getComponent("elements.TintableSvg");
var buttonGroup; var buttonGroup;
var inviteGroup;
var panel; var panel;
var filesHighlight; var filesHighlight;
@ -210,6 +211,14 @@ module.exports = React.createClass({
{ notificationsHighlight } { notificationsHighlight }
</div> </div>
</div>; </div>;
inviteGroup =
<div className="mx_RightPanel_invite" onClick={ this.onInviteButtonClick } >
<div className="mx_RightPanel_icon" >
<TintableSvg src="img/icon-invite-people.svg" width="35" height="35" />
</div>
<div className="mx_RightPanel_message">Invite to this room</div>
</div>;
} }
if (!this.props.collapsed) { if (!this.props.collapsed) {
@ -244,12 +253,7 @@ module.exports = React.createClass({
</div> </div>
{ panel } { panel }
<div className="mx_RightPanel_footer"> <div className="mx_RightPanel_footer">
<div className="mx_RightPanel_invite" onClick={ this.onInviteButtonClick } > { inviteGroup }
<div className="mx_RightPanel_icon" >
<TintableSvg src="img/icon-invite-people.svg" width="35" height="35" />
</div>
<div className="mx_RightPanel_message">Invite to this room</div>
</div>
</div> </div>
</aside> </aside>
); );