Skip to content

Commit efa574c

Browse files
committed
The invite group, will no longer be shown when the directory listing is being shown
1 parent 66ef521 commit efa574c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/components/structures/RightPanel.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ module.exports = React.createClass({
165165
var FilePanel = sdk.getComponent('structures.FilePanel');
166166
var TintableSvg = sdk.getComponent("elements.TintableSvg");
167167
var buttonGroup;
168+
var inviteGroup;
168169
var panel;
169170

170171
var filesHighlight;
@@ -210,6 +211,14 @@ module.exports = React.createClass({
210211
{ notificationsHighlight }
211212
</div>
212213
</div>;
214+
215+
inviteGroup =
216+
<div className="mx_RightPanel_invite" onClick={ this.onInviteButtonClick } >
217+
<div className="mx_RightPanel_icon" >
218+
<TintableSvg src="img/icon-invite-people.svg" width="35" height="35" />
219+
</div>
220+
<div className="mx_RightPanel_message">Invite to this room</div>
221+
</div>;
213222
}
214223

215224
if (!this.props.collapsed) {
@@ -244,12 +253,7 @@ module.exports = React.createClass({
244253
</div>
245254
{ panel }
246255
<div className="mx_RightPanel_footer">
247-
<div className="mx_RightPanel_invite" onClick={ this.onInviteButtonClick } >
248-
<div className="mx_RightPanel_icon" >
249-
<TintableSvg src="img/icon-invite-people.svg" width="35" height="35" />
250-
</div>
251-
<div className="mx_RightPanel_message">Invite to this room</div>
252-
</div>
256+
{ inviteGroup }
253257
</div>
254258
</aside>
255259
);

0 commit comments

Comments
 (0)