mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Improve table filter naming
This commit is contained in:
parent
f253bf1843
commit
d684ed076b
@ -31,6 +31,7 @@ loadStockTable($("#stock-table"), {
|
|||||||
part_details: true,
|
part_details: true,
|
||||||
ancestor: {{ item.id }},
|
ancestor: {{ item.id }},
|
||||||
},
|
},
|
||||||
|
name: 'item-childs',
|
||||||
groupByField: 'location',
|
groupByField: 'location',
|
||||||
buttons: [
|
buttons: [
|
||||||
'#stock-options',
|
'#stock-options',
|
||||||
|
@ -238,7 +238,7 @@ function loadStockTable(table, options) {
|
|||||||
|
|
||||||
var filters = {};
|
var filters = {};
|
||||||
|
|
||||||
var filterKey = options.filterKey || "stock";
|
var filterKey = options.filterKey || options.name || "stock";
|
||||||
|
|
||||||
if (!options.disableFilters) {
|
if (!options.disableFilters) {
|
||||||
filters = loadTableFilters(filterKey);
|
filters = loadTableFilters(filterKey);
|
||||||
|
Loading…
Reference in New Issue
Block a user