From 7e21e77c5fd903852226d4a57d3a28e13f10a2c2 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 28 Nov 2022 20:13:54 +1100 Subject: [PATCH] Add ability to filter location and category tables by "structural" status (#4000) --- InvenTree/templates/js/translated/table_filters.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/InvenTree/templates/js/translated/table_filters.js b/InvenTree/templates/js/translated/table_filters.js index 8abd5275a7..9c462f3cfc 100644 --- a/InvenTree/templates/js/translated/table_filters.js +++ b/InvenTree/templates/js/translated/table_filters.js @@ -130,6 +130,10 @@ function getAvailableTableFilters(tableKey) { title: '{% trans "Include sublocations" %}', description: '{% trans "Include locations" %}', }, + structural: { + type: 'bool', + title: '{% trans "Structural" %}', + }, }; } @@ -141,6 +145,10 @@ function getAvailableTableFilters(tableKey) { title: '{% trans "Include subcategories" %}', description: '{% trans "Include subcategories" %}', }, + structural: { + type: 'bool', + title: '{% trans "Structural" %}', + }, starred: { type: 'bool', title: '{% trans "Subscribed" %}',