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

pull/2198/head
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 TintableSvg = sdk.getComponent("elements.TintableSvg");
var buttonGroup;
var inviteGroup;
var panel;
var filesHighlight;
@ -210,6 +211,14 @@ module.exports = React.createClass({
{ notificationsHighlight }
</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) {
@ -244,12 +253,7 @@ module.exports = React.createClass({
</div>
{ panel }
<div className="mx_RightPanel_footer">
<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>
{ inviteGroup }
</div>
</aside>
);