From fc691ebbfbc11e2d9869949c505dee7feba0f869 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 19 Sep 2021 17:36:30 +0200 Subject: [PATCH] only show plugins with enabled mixins --- InvenTree/templates/InvenTree/settings/navbar.html | 2 +- InvenTree/templates/InvenTree/settings/settings.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/templates/InvenTree/settings/navbar.html b/InvenTree/templates/InvenTree/settings/navbar.html index 5592f63cd9..512c397292 100644 --- a/InvenTree/templates/InvenTree/settings/navbar.html +++ b/InvenTree/templates/InvenTree/settings/navbar.html @@ -130,7 +130,7 @@ {% plugin_list as pl_list %} {% for plugin_key, plugin in pl_list.items %} - {% if plugin.has_settings %} + {% if plugin.registered_mixins %}
  • {{ plugin.plugin_name}} diff --git a/InvenTree/templates/InvenTree/settings/settings.html b/InvenTree/templates/InvenTree/settings/settings.html index a764b82a39..c1a7985e94 100644 --- a/InvenTree/templates/InvenTree/settings/settings.html +++ b/InvenTree/templates/InvenTree/settings/settings.html @@ -38,7 +38,7 @@ {% plugin_list as pl_list %} {% for plugin_key, plugin in pl_list.items %} - {% if plugin.has_settings %} + {% if plugin.registered_mixins %} {% include "InvenTree/settings/plugin_settings.html" %} {% endif %} {% endfor %}