|
@@ -1246,8 +1246,8 @@ function renderInlineForCards() {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// Update summary
|
|
// Update summary
|
|
|
- $('#statTotal').textContent = api.total_products ?? 0;
|
|
|
|
|
- $('#statOk').textContent = api.successful ?? 0;
|
|
|
|
|
|
|
+ $('#statTotal').textContent = selectedProductsWithAttributes.length ?? api.total_products ?? 0;
|
|
|
|
|
+ $('#statOk').textContent = selectedProductsWithAttributes.length ?? api.successful ?? 0;
|
|
|
$('#statKo').textContent = api.failed ?? 0;
|
|
$('#statKo').textContent = api.failed ?? 0;
|
|
|
$('#api-summary').style.display = 'block';
|
|
$('#api-summary').style.display = 'block';
|
|
|
}
|
|
}
|
|
@@ -2653,8 +2653,8 @@ function renderInlineForTable() {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// Update summary statistics
|
|
// Update summary statistics
|
|
|
- $('#statTotal').textContent = api.total_products ?? 0;
|
|
|
|
|
- $('#statOk').textContent = api.successful ?? 0;
|
|
|
|
|
|
|
+ $('#statTotal').textContent = selectedProductsWithAttributes.length ?? api.total_products ?? 0;
|
|
|
|
|
+ $('#statOk').textContent = selectedProductsWithAttributes.length ?? api.successful ?? 0;
|
|
|
$('#statKo').textContent = api.failed ?? 0;
|
|
$('#statKo').textContent = api.failed ?? 0;
|
|
|
const apiSummary = $('#api-summary');
|
|
const apiSummary = $('#api-summary');
|
|
|
if (apiSummary) apiSummary.style.display = 'block';
|
|
if (apiSummary) apiSummary.style.display = 'block';
|