From 0d557094b2c6d86fdc6f835821f8f4539bd2ae3a Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 13 Apr 2015 15:32:11 +0100 Subject: [PATCH] Move help customisation under menu settings --- editor/js/main.js | 4 ++-- red/api/theme.js | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/editor/js/main.js b/editor/js/main.js index ff66cca6a..5789d2fb8 100644 --- a/editor/js/main.js +++ b/editor/js/main.js @@ -166,8 +166,8 @@ var RED = (function() { null, {id:"btn-keyboard-shortcuts",label:"Keyboard Shortcuts",onselect:RED.keyboard.showHelp}, {id:"btn-help", - label: RED.settings.theme("help.label","Node-RED Website"), - href: RED.settings.theme("help.url","http://nodered.org/docs") + label: RED.settings.theme("menu.btn-help.label","Node-RED Website"), + href: RED.settings.theme("menu.btn-help.url","http://nodered.org/docs") } ] }); diff --git a/red/api/theme.js b/red/api/theme.js index 3805f51f5..da3e9e1f4 100644 --- a/red/api/theme.js +++ b/red/api/theme.js @@ -129,7 +129,6 @@ module.exports = { if (theme.hasOwnProperty("userMenu")) { themeSettings.userMenu = theme.userMenu; } - //themeSettings.deployButton = theme.deployButton || themeSettings.deployButton; if (theme.login) { if (theme.login.image) { @@ -142,10 +141,6 @@ module.exports = { } } - if (theme.help) { - themeSettings.help = theme.help; - } - if (theme.hasOwnProperty("menu")) { themeSettings.menu = theme.menu; }