Server-side pagination for part category search results

This commit is contained in:
Oliver 2021-09-30 20:15:54 +10:00
parent b9c8e46e1c
commit e36039b03f

View File

@ -126,24 +126,10 @@
addItem('category', '{% trans "Part Categories" %}', 'fa-sitemap');
$("#table-category").inventreeTable({
url: "{% url 'api-part-category-list' %}",
queryParams: {
loadPartCategoryTable($("#table-category"), {
params: {
original_search: "{{ query }}",
},
columns: [
{
field: 'name',
title: '{% trans "Name" %}',
formatter: function(value, row, index, field) {
return renderLink(value, '/part/category/' + row.pk + '/');
},
},
{
field: 'description',
title: '{% trans "Description" %}',
},
],
}
});
addItem('manufacturer-part', '{% trans "Manufacturer Parts" %}', 'fa-toolbox');