mirror of https://github.com/node-red/node-red.git
Allow palette.categories to be set via theme plugin
parent
610e704436
commit
653d8a5b45
|
|
@ -198,6 +198,10 @@ async function loadThemePlugin () {
|
|||
}
|
||||
})
|
||||
}
|
||||
if (Array.isArray(themePlugin.palette?.categories)) {
|
||||
themeSettings.palette = themeSettings.palette || {};
|
||||
themeSettings.palette.categories = themePlugin.palette.categories;
|
||||
}
|
||||
|
||||
// These settings are not exposed under `editorTheme`, so we don't have a merge strategy for them
|
||||
// If they're defined in the theme plugin, they replace any settings.js values.
|
||||
|
|
|
|||
Loading…
Reference in New Issue