Add new setting

This commit is contained in:
Oliver Walters 2024-08-11 06:24:53 +00:00
parent 3c695870da
commit d73590f02f
2 changed files with 8 additions and 0 deletions

View File

@ -2107,6 +2107,13 @@ class InvenTreeSetting(BaseInvenTreeSetting):
'validator': bool, 'validator': bool,
'after_save': reload_plugin_registry, 'after_save': reload_plugin_registry,
}, },
'ENABLE_PLUGINS_INTERFACE': {
'name': _('Enable interface integration'),
'description': _('Enable plugins to integrate into the user interface'),
'default': False,
'validator': bool,
'after_save': reload_plugin_registry,
},
'PROJECT_CODES_ENABLED': { 'PROJECT_CODES_ENABLED': {
'name': _('Enable project codes'), 'name': _('Enable project codes'),
'description': _('Enable project codes for tracking projects'), 'description': _('Enable project codes for tracking projects'),

View File

@ -63,6 +63,7 @@ export default function PluginManagementPanel() {
keys={[ keys={[
'ENABLE_PLUGINS_SCHEDULE', 'ENABLE_PLUGINS_SCHEDULE',
'ENABLE_PLUGINS_EVENTS', 'ENABLE_PLUGINS_EVENTS',
'ENABLE_PLUGINS_INTERFACE',
'ENABLE_PLUGINS_URL', 'ENABLE_PLUGINS_URL',
'ENABLE_PLUGINS_NAVIGATION', 'ENABLE_PLUGINS_NAVIGATION',
'ENABLE_PLUGINS_APP', 'ENABLE_PLUGINS_APP',