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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user