mirror of
https://github.com/inventree/inventree-app.git
synced 2026-05-01 05:24:19 +00:00
Fix for label printing (#813)
- Closes https://github.com/inventree/inventree-app/issues/812 Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -814,6 +814,18 @@ class APIFormField {
|
||||
subtitle: Text(project_code.description),
|
||||
leading: Icon(TablerIcons.list),
|
||||
);
|
||||
case "labeltemplate":
|
||||
return ListTile(
|
||||
title: Text((data["name"] ?? "").toString()),
|
||||
subtitle: Text((data["description"] ?? "").toString()),
|
||||
);
|
||||
case "pluginconfig":
|
||||
return ListTile(
|
||||
title: Text(
|
||||
(data["meta"]?["human_name"] ?? data["name"] ?? "").toString(),
|
||||
),
|
||||
subtitle: Text((data["meta"]?["description"] ?? "").toString()),
|
||||
);
|
||||
default:
|
||||
return ListTile(
|
||||
title: Text(
|
||||
|
||||
Reference in New Issue
Block a user