mirror of
https://github.com/inventree/inventree-app.git
synced 2026-01-22 18:59:43 +00:00
Default filters (#755)
* Bug fix for filters - Fix key shadowing * Adjust default filters for stock list * Adjust default filter values * Add "active" filter for stock items * Code formatting * Add "default ordering" option * Enable pathstring sorting * dart format
This commit is contained in:
@@ -52,10 +52,14 @@ class _PaginatedStockLocationListState
|
||||
@override
|
||||
Map<String, String> get orderingOptions => {
|
||||
"name": L10().name,
|
||||
"pathstring": L10().path,
|
||||
"items": L10().stockItems,
|
||||
"level": L10().level,
|
||||
};
|
||||
|
||||
@override
|
||||
String get defaultOrdering => "pathstring";
|
||||
|
||||
@override
|
||||
Map<String, Map<String, dynamic>> get filterOptions => {
|
||||
"cascade": {
|
||||
|
||||
Reference in New Issue
Block a user