From 89dfb6186fc60b9dc911395697b2504cd069e937 Mon Sep 17 00:00:00 2001 From: Jakob Haufe Date: Sun, 7 May 2023 14:47:10 +0200 Subject: [PATCH] Restore shopping cart icon in BO/Allocate Parts (#4780) The shopping cart icon for parts already on order was originally implemented in 1b421fb59a but got broken in 27aa16d55d as the return value of `makeIconBadge` is discarded. Additionally, the FontAwesome JS renderer doesn't seem to like non-empty content for this, so even when adding it back to `icons`, it didn't get rendered properly. Instead, the count has to be added to the title. --- InvenTree/templates/js/translated/build.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/InvenTree/templates/js/translated/build.js b/InvenTree/templates/js/translated/build.js index deb971d7f7..6e5288257b 100644 --- a/InvenTree/templates/js/translated/build.js +++ b/InvenTree/templates/js/translated/build.js @@ -1984,9 +1984,7 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) { } if (row.on_order && row.on_order > 0) { - makeIconBadge('fa-shopping-cart', '{% trans "On Order" %}', { - content: row.on_order, - }); + icons += makeIconBadge('fa-shopping-cart', '{% trans "On Order" %}: ' + row.on_order); } return renderLink(text, url) + icons;