2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Add ability to filter builds by "active" status

This commit is contained in:
Oliver Walters
2020-09-19 20:42:20 +10:00
parent 11a17fb9b1
commit b8509f7533
3 changed files with 19 additions and 7 deletions

View File

@ -80,8 +80,8 @@ loadSimplePartTable("#bom-invalid-table", "{% url 'api-part-list' %}", {
loadBuildTable("#build-pending-table", {
url: "{% url 'api-build-list' %}",
params: {
"part_detail": true,
"status": "10-20",
part_detail: true,
active: true,
}
});

View File

@ -109,7 +109,10 @@ function getAvailableTableFilters(tableKey) {
title: '{% trans "Build status" %}',
options: buildCodes,
},
pending: {
type: 'bool',
title: '{% trans "Pending" %}',
}
};
}