mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 19:46:46 +00:00
Show built in label printing plugin even if the external plugins are disabled (#5304)
This commit is contained in:
parent
45aa8c39b3
commit
6b4717cb28
@ -12,7 +12,6 @@
|
|||||||
modalShowSubmitButton,
|
modalShowSubmitButton,
|
||||||
modalSubmit,
|
modalSubmit,
|
||||||
openModal,
|
openModal,
|
||||||
plugins_enabled,
|
|
||||||
showAlertDialog,
|
showAlertDialog,
|
||||||
showMessage,
|
showMessage,
|
||||||
user_settings,
|
user_settings,
|
||||||
@ -34,24 +33,22 @@ function selectLabel(labels, items, options={}) {
|
|||||||
var plugins = [];
|
var plugins = [];
|
||||||
|
|
||||||
// Request a list of available label printing plugins from the server
|
// Request a list of available label printing plugins from the server
|
||||||
if (plugins_enabled) {
|
inventreeGet(
|
||||||
inventreeGet(
|
`/api/plugins/`,
|
||||||
`/api/plugins/`,
|
{
|
||||||
{
|
mixin: 'labels',
|
||||||
mixin: 'labels',
|
},
|
||||||
},
|
{
|
||||||
{
|
async: false,
|
||||||
async: false,
|
success: function(response) {
|
||||||
success: function(response) {
|
plugins = response;
|
||||||
plugins = response;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
);
|
||||||
|
|
||||||
var plugin_selection = '';
|
var plugin_selection = '';
|
||||||
|
|
||||||
if (plugins_enabled && plugins.length > 0) {
|
if (plugins.length > 0) {
|
||||||
plugin_selection =`
|
plugin_selection =`
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label class='control-label requiredField' for='id_plugin'>
|
<label class='control-label requiredField' for='id_plugin'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user