mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
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:
parent
5a012182d9
commit
2e7188ea4f
@ -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() {
|
||||
|
5
packages/node_modules/node-red/red.js
vendored
5
packages/node_modules/node-red/red.js
vendored
@ -194,6 +194,11 @@ if (process.env.NODE_RED_ENABLE_PROJECTS) {
|
||||
settings.editorTheme.projects.enabled = !/^false$/i.test(process.env.NODE_RED_ENABLE_PROJECTS);
|
||||
}
|
||||
|
||||
if (process.env.NODE_RED_ENABLE_TOURS) {
|
||||
settings.editorTheme = settings.editorTheme || {};
|
||||
settings.editorTheme.tours = !/^false$/i.test(process.env.NODE_RED_ENABLE_TOURS);
|
||||
}
|
||||
|
||||
|
||||
var defaultServerSettings = {
|
||||
"x-powered-by": false
|
||||
|
Loading…
Reference in New Issue
Block a user