From 8118a9c71a394665a1497e9408d9a2b6d54fb1d5 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Wed, 24 Oct 2018 18:15:35 +0100 Subject: [PATCH] Wall devtools button behind a setting --- src/components/views/rooms/RoomSettings.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/RoomSettings.js b/src/components/views/rooms/RoomSettings.js index 774d136e45..b69938a117 100644 --- a/src/components/views/rooms/RoomSettings.js +++ b/src/components/views/rooms/RoomSettings.js @@ -947,9 +947,10 @@ module.exports = React.createClass({ ; } - const devtoolsButton = + const devtoolsButton = SettingsStore.getValue("showDeveloperTools") ? + ( { _t("Open Devtools") } - ; + ) : null; return (