Skip to content

Commit 174061d

Browse files
committed
Add setting to disable TagPanel
1 parent 56ca1bc commit 174061d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/components/structures/BottomLeftMenu.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ module.exports = React.createClass({
168168
const RoomDirectoryButton = sdk.getComponent('elements.RoomDirectoryButton');
169169
const CreateRoomButton = sdk.getComponent('elements.CreateRoomButton');
170170
const SettingsButton = sdk.getComponent('elements.SettingsButton');
171+
const GroupsButton = sdk.getComponent('elements.GroupsButton');
172+
173+
const groupsButton = SettingsStore.getValue("TagPanel.disableTagPanel") ?
174+
<GroupsButton tooltip={true} /> : null;
171175

172176
return (
173177
<div className="mx_BottomLeftMenu">
@@ -182,6 +186,7 @@ module.exports = React.createClass({
182186
<div ref={this._collectCreateRoomButton}>
183187
<CreateRoomButton tooltip={true} />
184188
</div>
189+
{ groupsButton }
185190
<span className="mx_BottomLeftMenu_settings">
186191
<SettingsButton tooltip={true} />
187192
</span>

src/components/structures/LeftPanel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ var LeftPanel = React.createClass({
194194
}
195195
);
196196

197-
const tagPanelEnabled = SettingsStore.isFeatureEnabled("feature_tag_panel");
197+
const tagPanelEnabled =
198+
SettingsStore.isFeatureEnabled("feature_tag_panel") &&
199+
!SettingsStore.getValue("TagPanel.disableTagPanel");
198200
const tagPanel = tagPanelEnabled ? <TagPanel /> : <div />;
199201

200202
const containerClasses = classNames(

0 commit comments

Comments
 (0)