mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Cascading list display working
This commit is contained in:
parent
bee04e2cd8
commit
ce4338f244
3 changed files with 72 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
import 'package:InvenTree/api.dart';
|
||||
import 'package:InvenTree/app_settings.dart';
|
||||
import 'package:InvenTree/inventree/part.dart';
|
||||
import 'package:InvenTree/preferences.dart';
|
||||
import 'package:InvenTree/widget/progress.dart';
|
||||
|
|
@ -418,6 +419,9 @@ class _PaginatedPartListState extends State<PaginatedPartList> {
|
|||
params["search"] = _searchTerm;
|
||||
}
|
||||
|
||||
final bool cascade = await InvenTreeSettingsManager().getValue("partSubcategory", false);
|
||||
params["cascade"] = "${cascade}";
|
||||
|
||||
final page = await InvenTreePart().listPaginated(_pageSize, pageKey, filters: params);
|
||||
final isLastPage = page.length < _pageSize;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue