From 6b4717cb281fb93118a6dc50418f2a4f3c09f1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20M=C3=A1rton?= Date: Fri, 21 Jul 2023 13:55:51 +0200 Subject: [PATCH] Show built in label printing plugin even if the external plugins are disabled (#5304) --- InvenTree/templates/js/translated/label.js | 27 ++++++++++------------ 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/InvenTree/templates/js/translated/label.js b/InvenTree/templates/js/translated/label.js index b0b849f6ca..3fa81e7119 100644 --- a/InvenTree/templates/js/translated/label.js +++ b/InvenTree/templates/js/translated/label.js @@ -12,7 +12,6 @@ modalShowSubmitButton, modalSubmit, openModal, - plugins_enabled, showAlertDialog, showMessage, user_settings, @@ -34,24 +33,22 @@ function selectLabel(labels, items, options={}) { var plugins = []; // Request a list of available label printing plugins from the server - if (plugins_enabled) { - inventreeGet( - `/api/plugins/`, - { - mixin: 'labels', - }, - { - async: false, - success: function(response) { - plugins = response; - } + inventreeGet( + `/api/plugins/`, + { + mixin: 'labels', + }, + { + async: false, + success: function(response) { + plugins = response; } - ); - } + } + ); var plugin_selection = ''; - if (plugins_enabled && plugins.length > 0) { + if (plugins.length > 0) { plugin_selection =`