2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Extract plugin information from label printing request

This commit is contained in:
Oliver
2022-03-24 13:31:01 +11:00
parent e62b6063bb
commit f1f07a1977
2 changed files with 38 additions and 1 deletions

View File

@ -222,7 +222,8 @@ function selectLabel(labels, items, options={}) {
async: false,
success: function(response) {
response.forEach(function(plugin) {
if (plugin.mixins && plugin.mixins.labels) {
// Look for active plugins which implement the 'labels' mixin class
if (plugin.active && plugin.mixins && plugin.mixins.labels) {
// This plugin supports label printing
plugins.push(plugin);
}