From 8d28fc06be8092a882dd862b1ad0b9e82f1ee1cf Mon Sep 17 00:00:00 2001 From: miggland Date: Thu, 27 Apr 2023 14:57:16 +0200 Subject: [PATCH] Improve text when no sub-categories found (#4711) Avoids confusion when looking for parts --- InvenTree/templates/js/translated/part.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/templates/js/translated/part.js b/InvenTree/templates/js/translated/part.js index 7780783c4f..6e8ef038e6 100644 --- a/InvenTree/templates/js/translated/part.js +++ b/InvenTree/templates/js/translated/part.js @@ -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,