Bug fix for build detail template (#4412)

- Remove reference to old expand/collapse templates (which no longer exist)
- Update tables to use javascript buttons
This commit is contained in:
Oliver 2023-02-25 09:56:13 +11:00 committed by GitHub
parent ed7d2e1262
commit c46f153449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -281,11 +281,6 @@
</ul>
</div>
{% if build.has_tracked_bom_items %}
{% include "expand_rows.html" with label="outputs" %}
{% include "collapse_rows.html" with label="outputs" %}
{% endif %}
{% include "filter_list.html" with id='incompletebuilditems' %}
</div>
{% endif %}

View File

@ -1217,10 +1217,10 @@ function loadBuildOutputTable(build_info, options={}) {
setupBuildOutputButtonCallbacks();
},
onLoadSuccess: function(rows) {
updateAllocationData(rows);
updateTestResultData(rows);
},
buttons: constructExpandCollapseButtons(table),
columns: [
{
title: '',
@ -1713,6 +1713,7 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
detailFilter: function(index, row) {
return allocatedQuantity(row) > 0;
},
buttons: constructExpandCollapseButtons(table),
detailFormatter: function(index, row, element) {
// Contruct an 'inner table' which shows which stock items have been allocated