mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Better logging when deprecated editorTheme.palette.* settings used
This commit is contained in:
@@ -362,6 +362,14 @@ function uninstallModule(module) {
|
||||
}
|
||||
|
||||
async function checkPrereq() {
|
||||
if (settings.editorTheme && settings.editorTheme.palette) {
|
||||
if (settings.editorTheme.palette.hasOwnProperty("editable")) {
|
||||
log.warn(log._("server.deprecatedOption",{old:"editorTheme.palette.editable", new:"externalModules.palette.allowInstall"}));
|
||||
}
|
||||
if (settings.editorTheme.palette.hasOwnProperty("upload")) {
|
||||
log.warn(log._("server.deprecatedOption",{old:"editorTheme.palette.upload", new:"externalModules.palette.allowUpload"}));
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
if (settings.editorTheme.palette.editable === false) {
|
||||
|
Reference in New Issue
Block a user