Add setting to disable TagPanel

This commit is contained in:
Luke Barnard 2018-02-28 18:16:37 +00:00
parent 56ca1bc7ee
commit 174061db57
2 changed files with 8 additions and 1 deletions

View file

@ -194,7 +194,9 @@ var LeftPanel = React.createClass({
}
);
const tagPanelEnabled = SettingsStore.isFeatureEnabled("feature_tag_panel");
const tagPanelEnabled =
SettingsStore.isFeatureEnabled("feature_tag_panel") &&
!SettingsStore.getValue("TagPanel.disableTagPanel");
const tagPanel = tagPanelEnabled ? <TagPanel /> : <div />;
const containerClasses = classNames(