Wall devtools button behind a setting
This commit is contained in:
parent
a5ae599dcb
commit
8118a9c71a
1 changed files with 3 additions and 2 deletions
|
@ -947,9 +947,10 @@ module.exports = React.createClass({
|
||||||
</AccessibleButton>;
|
</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") }
|
{ _t("Open Devtools") }
|
||||||
</AccessibleButton>;
|
</AccessibleButton>) : null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_RoomSettings">
|
<div className="mx_RoomSettings">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue