diff --git a/static/js/mass_add.js b/static/js/mass_add.js index f8e29ac..9cb5fbe 100644 --- a/static/js/mass_add.js +++ b/static/js/mass_add.js @@ -81,9 +81,16 @@ document.addEventListener('DOMContentLoaded', function () { } offset += limit; + if (productCountDisplay) { productCountDisplay.textContent = `Wyświetlono ${allProducts.length} produktów.`; } + + const statsEl = document.getElementById('massAddProductStats'); + if (statsEl) { + statsEl.textContent = `(${allProducts.length} z ${data.total_count})`; + } + } catch (err) { const loadingEl = productList.querySelector('.loading'); if (loadingEl) loadingEl.remove(); diff --git a/templates/list.html b/templates/list.html index 4919ed5..3aa9ee8 100644 --- a/templates/list.html +++ b/templates/list.html @@ -223,7 +223,10 @@