Server-side sorting of "build output" column

This commit is contained in:
Oliver 2022-04-28 16:14:23 +10:00
parent ba3bcdba89
commit 63145c90b0

View File

@ -913,6 +913,7 @@ function loadBuildOutputTable(build_info, options={}) {
title: '{% trans "Build Output" %}',
switchable: true,
sortable: true,
sortName: 'stock', // This will sort by quantity -> serial_int -> serial
formatter: function(value, row) {
var url = `/stock/item/${row.pk}/`;
@ -926,7 +927,7 @@ function loadBuildOutputTable(build_info, options={}) {
}
return renderLink(text, url);
}
},
},
{
field: 'allocated',