1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #3221 from hardillb/disable-tours

Add environment variable to enable/disable tours
This commit is contained in:
Nick O'Leary 2021-10-26 09:47:17 +01:00 committed by GitHub
commit fbcb1130c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

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

View File

@ -194,6 +194,11 @@ if (process.env.NODE_RED_ENABLE_PROJECTS) {
settings.editorTheme.projects.enabled = !/^false$/i.test(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 = { var defaultServerSettings = {
"x-powered-by": false "x-powered-by": false