From d73590f02fbfd0dbead15fef42e713b5a503f580 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 11 Aug 2024 06:24:53 +0000 Subject: [PATCH] Add new setting --- src/backend/InvenTree/common/models.py | 7 +++++++ .../Index/Settings/AdminCenter/PluginManagementPanel.tsx | 1 + 2 files changed, 8 insertions(+) diff --git a/src/backend/InvenTree/common/models.py b/src/backend/InvenTree/common/models.py index 9b34a4c37b..631adf2fb2 100644 --- a/src/backend/InvenTree/common/models.py +++ b/src/backend/InvenTree/common/models.py @@ -2107,6 +2107,13 @@ class InvenTreeSetting(BaseInvenTreeSetting): 'validator': bool, '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': { 'name': _('Enable project codes'), 'description': _('Enable project codes for tracking projects'), diff --git a/src/frontend/src/pages/Index/Settings/AdminCenter/PluginManagementPanel.tsx b/src/frontend/src/pages/Index/Settings/AdminCenter/PluginManagementPanel.tsx index 0882f93ddb..476b0adaf6 100644 --- a/src/frontend/src/pages/Index/Settings/AdminCenter/PluginManagementPanel.tsx +++ b/src/frontend/src/pages/Index/Settings/AdminCenter/PluginManagementPanel.tsx @@ -63,6 +63,7 @@ export default function PluginManagementPanel() { keys={[ 'ENABLE_PLUGINS_SCHEDULE', 'ENABLE_PLUGINS_EVENTS', + 'ENABLE_PLUGINS_INTERFACE', 'ENABLE_PLUGINS_URL', 'ENABLE_PLUGINS_NAVIGATION', 'ENABLE_PLUGINS_APP',