From efa574c4527fe13c29777b8bde15a0f53f3e9713 Mon Sep 17 00:00:00 2001 From: wmwragg Date: Wed, 14 Sep 2016 17:13:06 +0100 Subject: [PATCH] The invite group, will no longer be shown when the directory listing is being shown --- src/components/structures/RightPanel.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/structures/RightPanel.js b/src/components/structures/RightPanel.js index cc5c8da6..ef800c61 100644 --- a/src/components/structures/RightPanel.js +++ b/src/components/structures/RightPanel.js @@ -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 } ; + + inviteGroup = +
+
+ +
+
Invite to this room
+
; } if (!this.props.collapsed) { @@ -244,12 +253,7 @@ module.exports = React.createClass({ { panel }
-
-
- -
-
Invite to this room
-
+ { inviteGroup }
);