mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 10:15:32 +00:00
Get list of required tets
This commit is contained in:
@ -42,6 +42,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
||||
@override
|
||||
Future<void> request(BuildContext context) async {
|
||||
await part.reload(context);
|
||||
await part.getTestTemplates();
|
||||
}
|
||||
|
||||
void _savePart(Map<String, String> values) async {
|
||||
@ -219,7 +220,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
||||
tiles.add(ListTile(
|
||||
title: Text("Required Tests"),
|
||||
leading: FaIcon(FontAwesomeIcons.tasks),
|
||||
trailing: Text(""),
|
||||
trailing: Text("${part.testTemplateCount}"),
|
||||
onTap: null,
|
||||
)
|
||||
);
|
||||
|
Reference in New Issue
Block a user