Improve text when no sub-categories found (#4711)

Avoids confusion when looking for parts
This commit is contained in:
miggland 2023-04-27 14:57:16 +02:00 committed by GitHub
parent e2c3b28640
commit 8d28fc06be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2230,6 +2230,9 @@ function loadPartCategoryTable(table, options) {
treeShowField: 'name',
parentIdField: tree_view ? 'parent' : null,
method: 'get',
formatNoMatches: function() {
return '{% trans "No subcategories found" %}';
},
url: options.url || '{% url "api-part-category-list" %}',
queryParams: filters,
disablePagination: tree_view,