Wall devtools button behind a setting

pull/21833/head
Will Hunt 2018-10-24 18:15:35 +01:00
parent a5ae599dcb
commit 8118a9c71a
1 changed files with 3 additions and 2 deletions

View File

@ -947,9 +947,10 @@ module.exports = React.createClass({
</AccessibleButton>;
}
const devtoolsButton = <AccessibleButton className="mx_RoomSettings_devtoolsButton" onClick={this._openDevtools}>
const devtoolsButton = SettingsStore.getValue("showDeveloperTools") ?
(<AccessibleButton className="mx_RoomSettings_devtoolsButton" onClick={this._openDevtools}>
{ _t("Open Devtools") }
</AccessibleButton>;
</AccessibleButton>) : null;
return (
<div className="mx_RoomSettings">