Update table filters
This commit is contained in:
parent
3e27a3b739
commit
196c675585
|
|
@ -419,7 +419,7 @@ function getPartTestTemplateFilters() {
|
|||
// Return a dictionary of filters for the "build" table
|
||||
function getBuildTableFilters() {
|
||||
|
||||
return {
|
||||
let filters = {
|
||||
status: {
|
||||
title: '{% trans "Build status" %}',
|
||||
options: buildCodes,
|
||||
|
|
@ -456,6 +456,13 @@ function getBuildTableFilters() {
|
|||
},
|
||||
},
|
||||
};
|
||||
|
||||
if (global_settings.PROJECT_CODES_ENABLED) {
|
||||
filters['has_project_code'] = constructHasProjectCodeFilter();
|
||||
filters['project_code'] = constructProjectCodeFilter();
|
||||
}
|
||||
|
||||
return filters;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue