2
0
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:
Oliver
2026-04-26 09:54:51 +10:00
committed by GitHub
parent f4c6ee66cf
commit 7adfeeeddf
3 changed files with 18 additions and 1 deletions
+12
View File
@@ -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(