Add environment variable to enable/disable tours

NODE_RED_ENABLE_TOURS

Also had to patch editor-api/lib/editor/themes.js to pass
`editorTheme.tours` to the editor.
This commit is contained in:
Ben Hardill
2021-10-25 11:25:31 +01:00
parent 5a012182d9
commit 2e7188ea4f
2 changed files with 10 additions and 0 deletions

View File

@@ -228,6 +228,11 @@ module.exports = {
if (theme.theme) {
themeSettings.theme = theme.theme;
}
if (theme.hasOwnProperty("tours")) {
themeSettings.tours = theme.tours;
}
return themeApp;
},
context: async function() {